Skip to content

Commit fe9394c

Browse files
committed
Enable helpful null pointer exceptions (#54853)
Now that JDK 14 is available, and we are bundling it, this commit enables us to run with helpful null pointer exceptions, which will be a great aid in debugging.
1 parent a7921e2 commit fe9394c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

distribution/src/config/jvm.options

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@
7979
# exceptions because stack traces are important for debugging
8080
-XX:-OmitStackTraceInFastThrow
8181

82+
# enable helpful NullPointerExceptions (https://openjdk.java.net/jeps/358), if
83+
# they are supported
84+
14-:-XX:+ShowCodeDetailsInExceptionMessages
85+
8286
# flags to configure Netty
8387
-Dio.netty.noUnsafe=true
8488
-Dio.netty.noKeySetOptimization=true

0 commit comments

Comments
 (0)