This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In the current trunk, open some project and try New/JUnit/Empty Test UnreportedThrowableException caused by NPE is thrown (log attached). I'm not sure, this is caused (just) by java as it works well for other templates, but could you please help me evaluate the cause of this? It worked, now it doesn't.
Created attachment 17889 [details] exception trace
I can't reproduce it. In J2SE project. Which kind of project do you use. It seems to me that it is returning illega source groups.
It's reproducible only if the project is corrupted, its tests folder is doesn't exists and the source packages have not a test package pair. Ondra will check if the source-groups are correctly set as parameter for JavaTargetChooser.
The sourceGroups are not passed correctly - null is among them. I'll fix that in junit.
I fixed the issue and some related problems occurring when a project is corrupted by deleting the folder for tests (has support, but the physical folder is missing).
checked in: http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/wizards/Utils.java.diff?r1=1.6&r2=1.7 http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/wizards/StepProblemMessage.java.diff?r1=1.1&r2=1.2 http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/wizards/SimpleTestStepLocation.java.diff?r1=1.12&r2=1.13
V