Issue with catching RuntimeExceptions as NullPointerExceptions by an uncaught exception handler in Java FX applications
问题 I read this post JavaFx 8 global exception handling and tried to handle uncaught exceptions in my application. It works fine as described in the post. But when I added a statement which caused a NullPointerException the UncaughtExceptionHandler did not catch this exception. Why ? Is there another thread handling this exception? Or do I have to set the DefaultUncaughtExceptionHandler? I read JavaDocs: Uncaught exception handling is controlled first by the thread, then by the thread's