mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-4057 Corrected ProjectLocator bug and corrected use of various
directory preferences to varefy directory existance.
This commit is contained in:
parent
bb4a9ccbb1
commit
af160d946d
14 changed files with 66 additions and 30 deletions
|
@ -401,7 +401,10 @@ public class SpecExtensionPanel extends JPanel {
|
|||
private static File getStartingDir() {
|
||||
String lastDirectoryPath = Preferences.getProperty(LAST_EXPORT_DIRECTORY);
|
||||
if (lastDirectoryPath != null) {
|
||||
return new File(lastDirectoryPath);
|
||||
File dir = new File(lastDirectoryPath);
|
||||
if (dir.isDirectory()) {
|
||||
return dir;
|
||||
}
|
||||
}
|
||||
|
||||
return new File(System.getProperty("user.home"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue