java.lang.NullPointerException

Coderanch | Leajon First | 4 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

    DefaultTableModel got a NullPointerException.

    Coderanch | 4 years ago | Leajon First
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at tbl.TestTable$TM.getRowCount()
    2. tbl
      TestTable$TM.getRowCount
      1. tbl.TestTable$TM.getRowCount(TestTable.java:45)
      1 frame
    3. Java RT
      DefaultTableModel.<init>
      1. javax.swing.table.DefaultTableModel.setDataVector(DefaultTableModel.java:224)
      2. javax.swing.table.DefaultTableModel.<init>(DefaultTableModel.java:124)
      3. javax.swing.table.DefaultTableModel.<init>(DefaultTableModel.java:106)
      4. javax.swing.table.DefaultTableModel.<init>(DefaultTableModel.java:86)
      4 frames
    4. tbl
      TestTable$1.run
      1. tbl.TestTable$TM.<init>(TestTable.java:35)
      2. tbl.TestTable.initComponents(TestTable.java:28)
      3. tbl.TestTable.<init>(TestTable.java:24)
      4. tbl.TestTable.createAndShowGUI(TestTable.java:55)
      5. tbl.TestTable.access$000(TestTable.java:21)
      6. tbl.TestTable$1.run(TestTable.java:63)
      6 frames
    5. Java RT
      EventDispatchThread.run
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:711)
      3. java.awt.EventQueue.access$000(EventQueue.java:104)
      4. java.awt.EventQueue$3.run(EventQueue.java:672)
      5. java.awt.EventQueue$3.run(EventQueue.java:670)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:681)
      9. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
      10. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
      11. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
      12. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
      13. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
      14. java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
      14 frames