JavaFX: Log uncaught exceptions in SceneBuilder, use per-thread uncaught exception handler (IDEA-161991)

This commit is contained in:
Pavel Dolgov
2017-06-15 17:22:40 +03:00
parent 58c99c9ef4
commit 6398d8947f
@@ -105,9 +105,7 @@ public class SceneBuilderImpl implements SceneBuilder {
if (myProject.isDisposed()) {
return;
}
if (Thread.getDefaultUncaughtExceptionHandler() == null) {
Thread.setDefaultUncaughtExceptionHandler(SceneBuilderImpl::logUncaughtException);
}
Thread.currentThread().setUncaughtExceptionHandler(SceneBuilderImpl::logUncaughtException);
myEditorController = new EditorController();
updateCustomLibrary();