JMenu.remove(JMenuItem item) not checking for null handles correctly

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 1.1.7
    • Component/s: client-libs



      Name: clC74495 Date: 12/10/98


      ( This is for Swing version 1.1 )

      Since the java.util.Hashtable.remove(Object key) method does not check
      for a null argument being passed in, the JMenu.remove(JMenuItem item)
      must be changed to check for null object handles being returned from
      methods called before calling the Hashtable.remove method.

      Exception occurred during event dispatching:
      java.lang.NullPointerException:
              at java.util.Hashtable.remove(Hashtable.java:373)
              at javax.swing.JMenu.remove(JMenu.java:583)
              at com.bentley.tools.debugger.DebuggerUI.addToRecentFiles(DebuggerUI.java:2313)

      (Review ID: 47707)
      ======================================================================

            Assignee:
            Georges Saab
            Reporter:
            Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: