Skip to content

Commit

Permalink
LegacyUI: fix possible NPE with chooseFiles method
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Jan 5, 2022
1 parent b100e6d commit c65f9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/imagej/legacy/ui/LegacyUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public boolean accept(File f) {
chooser.setFileFilter(fileFilter);
chooser.setAcceptAllFileFilterUsed(false);
}
int rval = chooser.showOpenDialog(ij1Helper.getIJ());
int rval = chooser.showOpenDialog(ij1Helper().getIJ());
if (rval == JFileChooser.APPROVE_OPTION) {
result[0] = chooser.getSelectedFiles();
}
Expand Down

0 comments on commit c65f9dc

Please sign in to comment.