java.lang.NullPointerException

Coderanch | James Brooks | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Strange exception possibly related to MouseListener?

    Coderanch | 8 years ago | James Brooks
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at project7.NumberPanel.commence()
    2. project7
      NumberPanel$myMouseListener.mouseClicked
      1. project7.NumberPanel.commence(NumberPanel.java:43)
      2. project7.NumberPanel$myMouseListener.mouseClicked(NumberPanel.java:54)
      2 frames
    3. Java RT
      EventDispatchThread.run
      1. java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
      2. java.awt.Component.processMouseEvent(Component.java:6044)
      3. javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
      4. java.awt.Component.processEvent(Component.java:5806)
      5. java.awt.Container.processEvent(Container.java:2058)
      6. java.awt.Component.dispatchEventImpl(Component.java:4413)
      7. java.awt.Container.dispatchEventImpl(Container.java:2116)
      8. java.awt.Component.dispatchEvent(Component.java:4243)
      9. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
      10. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3995)
      11. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
      12. java.awt.Container.dispatchEventImpl(Container.java:2102)
      13. java.awt.Window.dispatchEventImpl(Window.java:2440)
      14. java.awt.Component.dispatchEvent(Component.java:4243)
      15. java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      16. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
      17. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
      18. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
      19. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
      20. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
      21. java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
      21 frames