java.lang.NullPointerException

Coderanch | Vazzdoin Rocko | 7 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

    simple piano to play using buttons

    Coderanch | 7 years ago | Vazzdoin Rocko
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at test.piano.mousePressed()
    2. test
      piano.mousePressed
      1. test.piano.mousePressed(piano.java:69)
      1 frame
    3. Java RT
      EventDispatchThread.run
      1. java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
      2. java.awt.Component.processMouseEvent(Component.java:6104)
      3. javax.swing.JComponent.processMouseEvent(JComponent.java:3287)
      4. java.awt.Component.processEvent(Component.java:5872)
      5. java.awt.Container.processEvent(Container.java:2101)
      6. java.awt.Component.dispatchEventImpl(Component.java:4467)
      7. java.awt.Container.dispatchEventImpl(Container.java:2159)
      8. java.awt.Component.dispatchEvent(Component.java:4293)
      9. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4578)
      10. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
      11. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4171)
      12. java.awt.Container.dispatchEventImpl(Container.java:2145)
      13. java.awt.Window.dispatchEventImpl(Window.java:2559)
      14. java.awt.Component.dispatchEvent(Component.java:4293)
      15. java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
      16. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
      17. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
      18. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
      19. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
      20. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
      21. java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
      21 frames