Fix not displaying crash report window when errored in Application.start

This commit is contained in:
huanghongxun
2018-11-25 18:14:42 +08:00
parent 9c7795687f
commit 45b55e2853

View File

@@ -48,6 +48,7 @@ public final class Launcher extends Application {
public void start(Stage primaryStage) {
Thread.currentThread().setUncaughtExceptionHandler(CRASH_REPORTER);
try {
try {
ConfigHolder.init();
} catch (IOException e) {
@@ -67,7 +68,9 @@ public final class Launcher extends Application {
primaryStage.show();
});
} catch (Throwable e) {
CRASH_REPORTER.uncaughtException(Thread.currentThread(), e);
}
}
public static void main(String[] args) {