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

NPE from MultiUIDefaults.getUIError

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6u18, 8, 9, 10
    • Fix Version/s: 10
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b23
    • CPU:
      x86
    • OS:
      linux

      Description

      When running the unit test

      http://hg.netbeans.org/core-main/file/69be2d4eadf2/openide.loaders/test/unit/src/org/openide/awt/MenuBarNotInAWTTest.java

      in JDK 6u18, the following stack trace is printed (though the test completes normally):

      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
              at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:133)
              at javax.swing.UIDefaults.getUI(UIDefaults.java:741)
              at javax.swing.UIManager.getUI(UIManager.java:989)
              at javax.swing.JMenuBar.updateUI(JMenuBar.java:127)
              at org.openide.awt.MenuBar.updateUI(MenuBar.java:168)
              at org.openide.awt.MenuBar$1.run(MenuBar.java:155)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

      I could try to produce a minimal standalone test case if that is required.

        Attachments

          Activity

            People

            Assignee:
            sveerabhadra Shashidhara Veerabhadraiah (Inactive)
            Reporter:
            jglick Jesse Glick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: