java.lang.NullPointerException

Coderanch | Krithika Beri | 4 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

    Error while trying to create a JTable

    Coderanch | 4 years ago | Krithika Beri
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at Main.tables()
    2. Unknown
      Main$2.valueChanged
      1. Main.tables(Main.java:166)
      2. Main$2.valueChanged(Main.java:130)
      2 frames
    3. Java RT
      EventDispatchThread.run
      1. javax.swing.JTree.fireValueChanged(Unknown Source)
      2. javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source)
      3. javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source)
      4. javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source)
      5. javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source)
      6. javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown Source)
      7. javax.swing.JTree.setSelectionPath(Unknown Source)
      8. javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown Source)
      9. javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Unknown Source)
      10. javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressedDND(Unknown Source)
      11. javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Unknown Source)
      12. java.awt.Component.processMouseEvent(Unknown Source)
      13. javax.swing.JComponent.processMouseEvent(Unknown Source)
      14. java.awt.Component.processEvent(Unknown Source)
      15. java.awt.Container.processEvent(Unknown Source)
      16. java.awt.Component.dispatchEventImpl(Unknown Source)
      17. java.awt.Container.dispatchEventImpl(Unknown Source)
      18. java.awt.Component.dispatchEvent(Unknown Source)
      19. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      20. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      21. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      22. java.awt.Container.dispatchEventImpl(Unknown Source)
      23. java.awt.Window.dispatchEventImpl(Unknown Source)
      24. java.awt.Component.dispatchEvent(Unknown Source)
      25. java.awt.EventQueue.dispatchEvent(Unknown Source)
      26. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      27. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      28. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      29. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      30. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      31. java.awt.EventDispatchThread.run(Unknown Source)
      31 frames