Last Directory Bug Fix

This commit is contained in:
Konloch 2021-07-19 07:36:40 -07:00
parent 05388b574b
commit b7b72f957f
1 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ public class Configuration
public static File getLastOpenDirectory() public static File getLastOpenDirectory()
{ {
File lastDir = new File(lastOpenDirectory); File lastDir = new File(lastOpenDirectory);
if(lastDir.getParentFile().exists()) if(lastDir.getParentFile() != null && lastDir.getParentFile().exists())
return lastDir; return lastDir;
return new File("."); return new File(".");
@ -80,7 +80,7 @@ public class Configuration
public static File getLastSaveDirectory() public static File getLastSaveDirectory()
{ {
File lastDir = new File(lastSaveDirectory); File lastDir = new File(lastSaveDirectory);
if(lastDir.getParentFile().exists()) if(lastDir.getParentFile() != null && lastDir.getParentFile().exists())
return lastDir; return lastDir;
return new File("."); return new File(".");
@ -90,7 +90,7 @@ public class Configuration
{ {
File lastDir = new File(lastPluginDirectory); File lastDir = new File(lastPluginDirectory);
if(lastDir.getParentFile().exists()) if(lastDir.getParentFile() != null && lastDir.getParentFile().exists())
return lastDir; return lastDir;
return new File("."); return new File(".");