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.

Bug 49596

Summary: NPE in JavaTargetChooserPanelGUI when creating empty test
Product: java Reporter: Ondrej Rypacek <rypacek>
Component: JUnitAssignee: Ondrej Rypacek <rypacek>
Status: CLOSED FIXED    
Severity: blocker CC: phrebejk
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    
Attachments: exception trace

Description Ondrej Rypacek 2004-09-27 15:17:20 UTC
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.
Comment 1 Ondrej Rypacek 2004-09-27 15:18:00 UTC
Created attachment 17889 [details]
exception trace
Comment 2 Petr Hrebejk 2004-09-29 14:48:53 UTC
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.
Comment 3 Jiri Rechtacek 2004-09-29 16:33:37 UTC
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.
Comment 4 Ondrej Rypacek 2004-09-29 17:07:23 UTC
The sourceGroups are not passed correctly - null is among them. I'll
fix that in junit.
Comment 5 Ondrej Rypacek 2004-10-04 14:19:00 UTC
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). 
Comment 7 Martin Schovanek 2004-10-14 11:23:16 UTC
V