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

TTY: 'catch caught' with no class pattern throws NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 1.4.2
    • core-svc
    • tiger
    • generic
    • generic



      Name: tb29552 Date: 12/04/2002



      Entering a 'catch caught' command with no class id or class pattern
      throws a NullPointerException:

      % jdb HelloWorld
      Initializing jdb ...
      > catch caught
      Internal exception:
      java.lang.NullPointerException
              at
      com.sun.tools.example.debug.tty.PatternReferenceTypeSpec.<init>(PatternReferenceTypeSpec.java:49)
              at
      com.sun.tools.example.debug.tty.EventRequestSpecList.createExceptionCatch(EventRequestSpecList.java:139)
              at
      com.sun.tools.example.debug.tty.Commands.parseExceptionSpec(Commands.java:788)
              at
      com.sun.tools.example.debug.tty.Commands.commandCatchException(Commands.java:802)
              at com.sun.tools.example.debug.tty.TTY.executeCommand(TTY.java:271)
              at com.sun.tools.example.debug.tty.TTY.<init>(TTY.java:539)
              at com.sun.tools.example.debug.tty.TTY.main(TTY.java:850)




      It should print a usage message:

      > catch caught
      Usage: catch [uncaught|caught|all] <class id>|<class pattern>



      ======================================================================

            tbell Tim Bell
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: