如何在没有跟踪代码的情况下调试NullPointer?

时间:2015-05-27 03:48:29

标签: java debugging null

我一直在研究一个相当大的项目,最近我一直是空指针展示,没有跟踪我在测试gui时看似随机时间编写的任何代码。我不知道如何找出原因,有没有人知道什么样的相互作用会导致这样的事情呢?

Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1064)
    at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
    at java.awt.EventDispatchThread.processException(EventDispatchThread.java:223)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:215)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

0 个答案:

没有答案