mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-25 03:18:27 +08:00
GP-0: Fixing exception with library folder selection
This commit is contained in:
@@ -271,7 +271,8 @@ public class OptionsEditorPanel extends JPanel {
|
||||
button.addActionListener(e -> {
|
||||
DataTreeDialog dataTreeDialog =
|
||||
new DataTreeDialog(this, "Choose a project folder", DataTreeDialog.CHOOSE_FOLDER);
|
||||
dataTreeDialog.setSelectedFolder(project.getProjectData().getFolder(lastFolderPath));
|
||||
String folderPath = lastFolderPath.isBlank() ? "/" : lastFolderPath;
|
||||
dataTreeDialog.setSelectedFolder(project.getProjectData().getFolder(folderPath));
|
||||
dataTreeDialog.showComponent();
|
||||
DomainFolder folder = dataTreeDialog.getDomainFolder();
|
||||
if (folder != null) {
|
||||
|
||||
Reference in New Issue
Block a user