Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4966568

java.lang.NullPointerException: say which variable when multiple in the line

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description



      Name: rmT116609 Date: 12/10/2003


      A DESCRIPTION OF THE REQUEST :
      if a java.lang.NullPointerException references a method with multiple variables in its signature, it would be very helpful if the exception would tell which one of them was the culprit!

      JUSTIFICATION :
      when the exception is thrown, it is known with variable is the culprit.
      Sharing this with the user would increase the speed of programming with Java even further

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      for example:

      java.lang.NullPointerException on line 123: variable "User"
      ACTUAL -
      java.lang.NullPointerException on line 123

      not knowing which variable is the culprit often leads to lengthy, wasteful searches
      (Incident Review ID: 230212)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              phh Paul Hohensee
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: