java.lang.NullPointerException

Stack Overflow | Jofre Vallès | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Why my program does work properly on Windows and it does not in mac? (Java)

    Stack Overflow | 7 months ago | Jofre Vallès
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at main.main.paint()
    2. main
      main.paint
      1. main.main.paint(main.java:74)
      1 frame
    3. Java RT
      EventDispatchThread.run
      1. javax.swing.JComponent.paintChildren(JComponent.java:889)
      2. javax.swing.JComponent.paint(JComponent.java:1065)
      3. javax.swing.JComponent.paintChildren(JComponent.java:889)
      4. javax.swing.JComponent.paint(JComponent.java:1065)
      5. javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
      6. javax.swing.JComponent.paintChildren(JComponent.java:889)
      7. javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
      8. javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
      9. javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
      10. javax.swing.RepaintManager.paint(RepaintManager.java:1272)
      11. javax.swing.JComponent.paint(JComponent.java:1042)
      12. java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
      13. sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
      14. sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
      15. java.awt.Container.paint(Container.java:1975)
      16. java.awt.Window.paint(Window.java:3912)
      17. javax.swing.RepaintManager$4.run(RepaintManager.java:842)
      18. javax.swing.RepaintManager$4.run(RepaintManager.java:814)
      19. java.security.AccessController.doPrivileged(Native Method)
      20. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      21. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
      22. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
      23. javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
      24. javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
      25. javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
      26. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      27. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      28. java.awt.EventQueue.access$500(EventQueue.java:97)
      29. java.awt.EventQueue$3.run(EventQueue.java:709)
      30. java.awt.EventQueue$3.run(EventQueue.java:703)
      31. java.security.AccessController.doPrivileged(Native Method)
      32. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      33. java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      34. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      35. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      36. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      37. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      38. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      39. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      39 frames