Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public static JFileChooser create(File file, String title, String description, S
public static JFileChooser create(boolean skipFileFilter, File file, String title, String description, String... extensions) throws ExecutionException, InterruptedException
{
JFileChooser chooser = SINGLETON.get();
if (chooser == null) {
System.err.println("Error: JFileChooser not initialized properly — skipping export.");
return null;
}


Set<String> extensionSet = new HashSet<>(Arrays.asList(extensions));

Expand Down