Fix not displaying crash report window when errored in Application.start
This commit is contained in:
@@ -48,6 +48,7 @@ public final class Launcher extends Application {
|
|||||||
public void start(Stage primaryStage) {
|
public void start(Stage primaryStage) {
|
||||||
Thread.currentThread().setUncaughtExceptionHandler(CRASH_REPORTER);
|
Thread.currentThread().setUncaughtExceptionHandler(CRASH_REPORTER);
|
||||||
|
|
||||||
|
try {
|
||||||
try {
|
try {
|
||||||
ConfigHolder.init();
|
ConfigHolder.init();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
@@ -67,7 +68,9 @@ public final class Launcher extends Application {
|
|||||||
|
|
||||||
primaryStage.show();
|
primaryStage.show();
|
||||||
});
|
});
|
||||||
|
} catch (Throwable e) {
|
||||||
|
CRASH_REPORTER.uncaughtException(Thread.currentThread(), e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|||||||
Reference in New Issue
Block a user