java.lang.NullPointerException

Oracle Community | 807553 | 1 decade 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

    Why is my code giving me NullPointerException?

    Oracle Community | 1 decade ago | 807553
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at MouseAssignment.mouseClicked()
    2. Unknown
      MouseAssignment.mouseClicked
      1. MouseAssignment.mouseClicked(MouseAssignment.java:34)
      1 frame
    3. Java RT
      EventDispatchThread.run
      1. java.awt.Component.processMouseEvent(Component.java:3713)
      2. java.awt.Component.processEvent(Component.java:3539)
      3. java.awt.Container.processEvent(Container.java:1159)
      4. java.awt.Window.processEvent(Window.java:788)
      5. java.awt.Component.dispatchEventImpl(Component.java:2588)
      6. java.awt.Container.dispatchEventImpl(Container.java:1208)
      7. java.awt.Window.dispatchEventImpl(Window.java:923)
      8. java.awt.Component.dispatchEvent(Component.java:2492)
      9. java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
      10. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
      11. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
      12. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
      13. java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
      13 frames