• Verified

      A new option is available to provide more helpful `NullPointerException` messages:

           -XX:+ShowCodeDetailsInExceptionMessages

      If the option is set, on encountering a null pointer, the JVM analyzes the program to determine which reference was `null` and then provides the details as part of `NullPointerException.getMessage()`. In addition to the exception message, the method, filename, and line number are also returned.

      By default, this option is disabled.

            coleenp Coleen Phillimore
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: