NullPointerException: Colors cannot be null

Help
2006-12-01
2013-04-16
  • Tom Crosman
    Tom Crosman
    2006-12-01

    Using WinXP svc pack 2 plus latest updates and JDK 1.5.0_07.
    What's wrong with this picture?  Happens with all three LnFs

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Colors cannot be null
        at java.awt.GradientPaint.<init>(Unknown Source)
        at org.fife.plaf.Office2003.Office2003MenuUI.paintTopLevelMenuBackground(Unknown Source)
        at org.fife.plaf.OfficeXP.OfficeXPMenuUI.paintBackground(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.paintMenuItem(Unknown Source)
        at org.fife.plaf.OfficeXP.OfficeXPMenuUI.paintMenuItem(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.paint(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.update(Unknown Source)
        at javax.swing.plaf.multi.MultiMenuItemUI.update(Unknown Source)
        at javax.swing.JComponent.paintComponent(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
        at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
        at javax.swing.JComponent._paintImmediately(Unknown Source)
        at javax.swing.JComponent.paintImmediately(Unknown Source)
        at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

     
    • Robert Futrell
      Robert Futrell
      2006-12-01

      Hi Tom,

      Strange, I don't get this exception.  I'll dig into it a little and see what I can find.