java.lang.NullPointerException

Stack Overflow | Java Beginner | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at Panel.paintComponent()
  2. Unknown
    Panel.paintComponent
    1. Panel.paintComponent(Panel.java:71)
    1 frame
  3. Java RT
    EventDispatchThread.run
    1. javax.swing.JComponent.paint(Unknown Source)
    2. javax.swing.JComponent.paintChildren(Unknown Source)
    3. javax.swing.JComponent.paint(Unknown Source)
    4. javax.swing.JComponent.paintChildren(Unknown Source)
    5. javax.swing.JComponent.paint(Unknown Source)
    6. javax.swing.JLayeredPane.paint(Unknown Source)
    7. javax.swing.JComponent.paintChildren(Unknown Source)
    8. javax.swing.JComponent.paintToOffscreen(Unknown Source)
    9. javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
    10. javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
    11. javax.swing.RepaintManager.paint(Unknown Source)
    12. javax.swing.JComponent.paint(Unknown Source)
    13. java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
    14. sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
    15. sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
    16. java.awt.Container.paint(Unknown Source)
    17. java.awt.Window.paint(Unknown Source)
    18. javax.swing.RepaintManager$4.run(Unknown Source)
    19. javax.swing.RepaintManager$4.run(Unknown Source)
    20. java.security.AccessController.doPrivileged(Native Method)
    21. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    22. javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
    23. javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
    24. javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
    25. javax.swing.RepaintManager.access$1200(Unknown Source)
    26. javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
    27. java.awt.event.InvocationEvent.dispatch(Unknown Source)
    28. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    29. java.awt.EventQueue.access$500(Unknown Source)
    30. java.awt.EventQueue$3.run(Unknown Source)
    31. java.awt.EventQueue$3.run(Unknown Source)
    32. java.security.AccessController.doPrivileged(Native Method)
    33. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    34. java.awt.EventQueue.dispatchEvent(Unknown Source)
    35. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    36. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    37. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    38. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    39. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    40. java.awt.EventDispatchThread.run(Unknown Source)
    40 frames