java.lang.NullPointerException

Coderanch | Timothy Hoyle | 7 years 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.
  1. 0

    Printing a GUI

    Coderanch | 7 years ago | Timothy Hoyle
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at Budget.budgetFrame2$printHandler.print()
    2. Budget
      budgetFrame2$printHandler.print
      1. Budget.budgetFrame2$printHandler.print(budgetFrame2.java:635)
      1 frame
    3. Java RT
      RasterPrinterJob.print
      1. sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1786)
      2. sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1335)
      3. sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1197)
      3 frames
    4. Budget
      budgetFrame2$printHandler.actionPerformed
      1. Budget.budgetFrame2$printHandler.actionPerformed(budgetFrame2.java:648)
      1 frame
    5. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      6. java.awt.Component.processMouseEvent(Component.java:5517)
      7. javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
      8. java.awt.Component.processEvent(Component.java:5282)
      9. java.awt.Container.processEvent(Container.java:1966)
      10. java.awt.Component.dispatchEventImpl(Component.java:3984)
      11. java.awt.Container.dispatchEventImpl(Container.java:2024)
      12. java.awt.Component.dispatchEvent(Component.java:3819)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
      14. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
      15. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
      16. java.awt.Container.dispatchEventImpl(Container.java:2010)
      17. java.awt.Window.dispatchEventImpl(Window.java:1791)
      18. java.awt.Component.dispatchEvent(Component.java:3819)
      19. java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      20. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
      21. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      22. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      23. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      24. java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      24 frames