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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 6
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b10
    • CPU:
      generic
    • OS:
      generic

      Description

      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
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: