From fe667bc1b223cd9d790204a5ab6ec4a90f7b81c8 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Tue, 25 Nov 2014 09:52:33 +0100 Subject: [PATCH] Remove System#exit call from BitsquareApp#stop Calling System#exit short-circuits normal error reporting, meaning that when an exception is called within the scope of executing the Application's #start method, the message Exception in Application start method is printed to the console, but without a stack trace. Removing the System#exit call allows JavaFX's LauncherImpl to continue processing the exception, ultimately printing out the stack trace as expected. --- src/main/java/io/bitsquare/app/gui/BitsquareApp.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/io/bitsquare/app/gui/BitsquareApp.java b/src/main/java/io/bitsquare/app/gui/BitsquareApp.java index 8b66a99c1c..8699bd5661 100644 --- a/src/main/java/io/bitsquare/app/gui/BitsquareApp.java +++ b/src/main/java/io/bitsquare/app/gui/BitsquareApp.java @@ -148,7 +148,6 @@ public class BitsquareApp extends Application { @Override public void stop() { bitsquareAppModule.close(injector); - System.exit(0); }