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

JMenu entry without JMenuItems cause NullPointer on Keyboard entry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.0
    • client-libs
    • None

      If a JMenu entry doesn't have any JMenuItems keyboard strokes will generate a Null Pointer Exception. The problem is in JMenuBar.bindingForKeyStrokeRecursive() line 559 (JDK1.2Beta3). subcomponents needs to be tested for null.

      Attached is a sample program that illustrates the problem.

            gsaab Georges Saab
            rbrinkle Roger Brinkley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: