GP-0: Fixing GhidraJarBuilder failing if extensions were installed

This commit is contained in:
Ryan Kurtz
2026-04-14 11:55:20 -04:00
parent 79da29c6f6
commit 5f211c313f
@@ -582,7 +582,9 @@ public class GhidraJarBuilder implements GhidraLaunchable {
for (GModule module : layout.getModules().values()) {
File moduleDir = module.getModuleRoot().getFile(false).getCanonicalFile();
File rootDir = getModuleRootDir(moduleDir);
modules.add(new ApplicationModule(rootDir, moduleDir));
if (rootDir != null) {
modules.add(new ApplicationModule(rootDir, moduleDir));
}
}
return modules;
@@ -601,7 +603,8 @@ public class GhidraJarBuilder implements GhidraLaunchable {
return rootDir;
}
}
throw new AssertException("Module root directory could not be determined: " + moduleDir);
System.out.println("Skipping external module: " + moduleDir);
return null;
}
private String getPathFromRoot(String rootPath, File file) {