Nullpointer

Help
Bro
2005-04-13
2013-04-16
  • Bro

    Bro - 2005-04-13

    Hi

    I have this JMenuBar with 4 JMenus.
    File, Database, Tools and Help

    When starting up the app with any of the office laf's and then go straight on the File Menu I get a nullpointer.
    If choosing any of the other JMenus before going to the File JMenu, it won't give a nullpointer.

    The only bigg diference between the file JMenu and the other JMenu's is that the File JMenu has two JMenuItems as well as one JMenu.
    The other JMenu's only have JMenuItems.

    java.lang.NullPointerException
        at org.fife.plaf.OfficeXP.OfficeXPMenuUI.paintIcon(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.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.paintChildren(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.JLayeredPane.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
        at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
        at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
        at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
        at java.awt.Container.paint(Unknown Source)
        at javax.swing.JFrame.update(Unknown Source)
        at sun.awt.RepaintArea.paint(Unknown Source)
        at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(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)

    java.lang.NullPointerException
        at org.fife.plaf.OfficeXP.OfficeXPMenuUI.paintIcon(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.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)

    It's the same nullpointer on the both officeXP and office2003

    Great laf by the way!

    Bro

     
    • Robert Futrell

      Robert Futrell - 2005-04-18

      I'll look at this tomorrow or the next day, been awfully busy lately!  Sorry I didn't reply sooner, but I wasn't monitoring this forum.  I'll try to be better in the future...

       
    • Robert Futrell

      Robert Futrell - 2005-04-20

      This issue was not reproducible, but if it ever surfaces again we'll dig a little deeper...

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks