java.lang.NullPointerException

Coderanch | Kunal Lakhani | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    JCheckBox and event Handling

    Coderanch | 5 years ago | Kunal Lakhani
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.nit.StudentDatabase2.itemStateChanged()
    2. org.nit
      StudentDatabase2.itemStateChanged
      1. org.nit.StudentDatabase2.itemStateChanged(StudentDatabase2.java:358)
      1 frame
    3. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireItemStateChanged(AbstractButton.java:2023)
      2. javax.swing.AbstractButton$Handler.itemStateChanged(AbstractButton.java:2325)
      3. javax.swing.DefaultButtonModel.fireItemStateChanged(DefaultButtonModel.java:440)
      4. javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:255)
      5. javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:272)
      6. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      7. java.awt.Component.processMouseEvent(Component.java:6216)
      8. javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
      9. java.awt.Component.processEvent(Component.java:5981)
      10. java.awt.Container.processEvent(Container.java:2041)
      11. java.awt.Component.dispatchEventImpl(Component.java:4583)
      12. java.awt.Container.dispatchEventImpl(Container.java:2099)
      13. java.awt.Component.dispatchEvent(Component.java:4413)
      14. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
      15. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
      16. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
      17. java.awt.Container.dispatchEventImpl(Container.java:2085)
      18. java.awt.Window.dispatchEventImpl(Window.java:2475)
      19. java.awt.Component.dispatchEvent(Component.java:4413)
      20. java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      21. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      22. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      23. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      24. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      25. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      26. java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
      26 frames