java.lang.NullPointerException

Coderanch | Jay Orsaw | 6 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

    Array of objects/ graphics painting help

    Coderanch | 6 years ago | Jay Orsaw
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at Rect.paint()
    2. Unknown
      Rect.paint
      1. Rect.paint(Rect.java:91)
      1 frame
    3. Java RT
      EventDispatchThread.run
      1. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:796)
      2. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:713)
      3. javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:693)
      4. javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:125)
      5. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      6. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
      7. java.awt.EventQueue.access$000(EventQueue.java:85)
      8. java.awt.EventQueue$1.run(EventQueue.java:603)
      9. java.awt.EventQueue$1.run(EventQueue.java:601)
      10. java.security.AccessController.doPrivileged(Native Method)
      11. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      12. java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
      13. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      14. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      15. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      16. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      17. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      18. java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
      18 frames