diff --git a/src/main/java/fiji/plugin/trackmate/util/TMUtils.java b/src/main/java/fiji/plugin/trackmate/util/TMUtils.java index 0550f0adb..cd4c2ee05 100644 --- a/src/main/java/fiji/plugin/trackmate/util/TMUtils.java +++ b/src/main/java/fiji/plugin/trackmate/util/TMUtils.java @@ -745,7 +745,7 @@ public static File proposeTrackMateSaveFile( final Settings settings, final Logg */ settings.imageFolder = settings.imp.getOriginalFileInfo().directory; } - else if ( !settings.imageFolder.isEmpty() ) + else if ( null != settings.imageFolder && !settings.imageFolder.isEmpty() ) { final String absolutePath = FileSystems.getDefault().getPath( settings.imageFolder ).normalize().toAbsolutePath().toString(); folder = new File( absolutePath );