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

Frame.remove(getMenuBar()) throws NPE if the frame doesn't have a menu bar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • client-libs
    • b10
    • generic
    • generic

      Name: agR10216 Date: 02/28/2004


      Frame.remove(Frame.getMenuBar()) throws NPE if the frame doesn't have
      a menu bar (Frame.getMenuBar() returns null in this case), though the
      doc for Frame.remove(MenuComponent m) says: "If m is null, then no
      action is taken". The bug can be reproduced with the manual regression
      test test/java/awt/Frame/MenuCrash if one clicks the button "Remove
      Menus" twice.

      ###@###.### 2004-02-28
      ======================================================================

            dav Andrei Dmitriev (Inactive)
            agerasimsunw Alexander Gerasimov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: