Skip to content

Commit

Permalink
correct no test image error
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Jun 14, 2023
1 parent a890656 commit 50114a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/DeepImageJ_Run.java
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ public void actionPerformed(ActionEvent e) {
// Do nothing
}
}
notNpy = !(imageName2.endsWith(".npy") || imageName2.endsWith(".npx") || imageName2.endsWith(".np"));
notNpy = imageName2 != null && !(imageName2.endsWith(".npy") || imageName2.endsWith(".npx") || imageName2.endsWith(".np"));
if (!openTest && notNpy && imageName2 != null && new File(imageName2).isFile()) {
try{
imp = IJ.openImage(imageName2);
Expand Down

0 comments on commit 50114a3

Please sign in to comment.