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 - NPE in JavaTargetChooserPanelGUI when creating empty test
Summary: NPE in JavaTargetChooserPanelGUI when creating empty test
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Ondrej Rypacek
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-09-27 15:17 UTC by Ondrej Rypacek
Modified: 2006-03-24 10:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception trace (18.68 KB, text/plain)
2004-09-27 15:18 UTC, Ondrej Rypacek
Details

Note You need to log in before you can comment on or make changes to this bug.
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