Skip to content

Commit

Permalink
Don't crash when saving with an image without an associated on-disk l…
Browse files Browse the repository at this point in the history
…ocation

Fix #303
Reported by @jiyuuchc
  • Loading branch information
tinevez committed Jul 25, 2024
1 parent bb10ad3 commit a3e9a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fiji/plugin/trackmate/util/TMUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit a3e9a7b

Please sign in to comment.