Last Directory Bug Fix
This commit is contained in:
parent
05388b574b
commit
b7b72f957f
1 changed files with 3 additions and 3 deletions
|
@ -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(".");
|
||||||
|
|
Loading…
Reference in a new issue