mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GP-0 fix test issue for GhidraGo
This commit is contained in:
parent
c4fefb5924
commit
3f61c478b3
1 changed files with 7 additions and 2 deletions
|
@ -49,8 +49,8 @@ public class GhidraGo implements GhidraLaunchable {
|
|||
*/
|
||||
@Override
|
||||
public void launch(GhidraApplicationLayout layout, String[] args) throws Exception {
|
||||
try {
|
||||
ApplicationConfiguration configuration = null;
|
||||
try {
|
||||
if (!Application.isInitialized()) {
|
||||
System.setProperty(ApplicationProperties.APPLICATION_NAME_PROPERTY, "GhidraGo");
|
||||
configuration = new DockingApplicationConfiguration();
|
||||
|
@ -92,8 +92,13 @@ public class GhidraGo implements GhidraLaunchable {
|
|||
catch (Exception e) {
|
||||
logOrShowError("GhidraGo Exception", "An unexpected exception occurred in GhidraGo", e);
|
||||
}
|
||||
// if configuration is null, probably running inside a test
|
||||
if (configuration != null) {
|
||||
// calling System.exit explicitly is necessary, otherwise the Loading... screen
|
||||
// persists instead of closing when complete.
|
||||
System.exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
private void logOrShowError(String errorTitle, String errorMessage, Exception e) {
|
||||
if (SystemUtilities.isInHeadlessMode()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue