mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-10-22 21:21:02 +00:00
3087 GhidraProjectUtils: Don't get entry folder from path if entry is not CPE_SOURCE
This commit is contained in:
parent
68a9c0a5a3
commit
cc75f89272
|
@ -388,9 +388,11 @@ public class GhidraProjectUtils {
|
|||
// If the project is linked to an old Ghidra, keep the list of source folders that are
|
||||
// linked to the Ghidra installation (after updating their paths to point to the new
|
||||
// Ghidra installation).
|
||||
IFolder entryFolder =
|
||||
ResourcesPlugin.getWorkspace().getRoot().getFolder(entry.getPath());
|
||||
if (entry.getEntryKind() == IClasspathEntry.CPE_SOURCE && entryFolder.isLinked() &&
|
||||
IFolder entryFolder;
|
||||
if (entry.getEntryKind() == IClasspathEntry.CPE_SOURCE) {
|
||||
entryFolder = ResourcesPlugin.getWorkspace().getRoot().getFolder(entry.getPath());
|
||||
}
|
||||
if (entryFolder != null && entryFolder.isLinked() &&
|
||||
oldGhidraInstallPath != null &&
|
||||
oldGhidraInstallPath.isPrefixOf(entryFolder.getLocation())) {
|
||||
String origPath = entryFolder.getLocation().toString();
|
||||
|
|
Loading…
Reference in New Issue
Block a user