testmycode / tmc-netbeans

Test My Code NetBeans plugin
GNU General Public License v2.0
19 stars 18 forks source link

NPE when no validation strategy exists #76

Closed jamo closed 10 years ago

jamo commented 10 years ago

https://github.com/testmycode/tmc-netbeans/blob/master/tmc-plugin/src/fi/helsinki/cs/tmc/data/ResultCollector.java#L68-L70

java.lang.NullPointerException
        at fi.helsinki.cs.tmc.data.ResultCollector.isSubmittable(ResultCollector.java:68)
        at fi.helsinki.cs.tmc.data.ResultCollector.showAllResults(ResultCollector.java:46)
        at fi.helsinki.cs.tmc.data.ResultCollector.setTestCaseResults(ResultCollector.java:40)
        at fi.helsinki.cs.tmc.ui.TestResultDisplayer.displayTestCases(TestResultDisplayer.java:167)
        at fi.helsinki.cs.tmc.ui.TestResultDisplayer.showSubmissionResult(TestResultDisplayer.java:45)
        at fi.helsinki.cs.tmc.exerciseSubmitter.ExerciseSubmitter$1$1.bgTaskReady(ExerciseSubmitter.java:98)
        at fi.helsinki.cs.tmc.exerciseSubmitter.ExerciseSubmitter$1$1.bgTaskReady(ExerciseSubmitter.java:89)
        at fi.helsinki.cs.tmc.utilities.BgTask$4.run(BgTask.java:119)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
mpartel commented 10 years ago

Fixed by #77