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 216647 - NullPointerException at org.netbeans.modules.testng.NewTestWizardIterator.instantiate
Summary: NullPointerException at org.netbeans.modules.testng.NewTestWizardIterator.ins...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 09:10 UTC by Jiri Skrivanek
Modified: 2012-09-27 12:50 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 188860


Attachments
stacktrace (6.28 KB, text/plain)
2012-08-10 09:10 UTC, Jiri Skrivanek
Details
stacktrace (6.36 KB, text/plain)
2012-09-10 11:50 UTC, Vladimir Riha
Details
stacktrace (6.36 KB, text/plain)
2012-09-11 11:47 UTC, Kenneth Ganfield
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-08-10 09:10:18 UTC
Build: NetBeans IDE Dev (Build EaselCSS-474-on-20120810)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b22
OS: Windows 7

User Comments:
jskrivanek: To reproduce:
- create new HTML Application project
- open new file wizard
- select "Unit Tests|TestNG Test Case" and click Next
- type test/a into Folder field and click Finish




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.testng.NewTestWizardIterator.instantiate(NewTestWizardIterator.java:131)
   at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1024)
   at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:589)
   at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:432)
   at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248)
   at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:160)
Comment 1 Jiri Skrivanek 2012-08-10 09:10:20 UTC
Created attachment 122980 [details]
stacktrace
Comment 2 Vladimir Riha 2012-09-10 11:50:13 UTC
Created attachment 124095 [details]
stacktrace

trying to create TestNG test file in PHP project (which is imho pointless but since wizard allows to select file from category Unit Tests, it should be somehow handled)

To reproduce:
- create a PHP project
- invoke New File, select Unit Tests and finish with default values
Comment 3 Exceptions Reporter 2012-09-10 11:50:23 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=188860
Comment 4 Kenneth Ganfield 2012-09-11 11:47:13 UTC
Created attachment 124158 [details]
stacktrace

creating NGTest Case in HTML5 project
Comment 5 Theofanis Oikonomou 2012-09-26 09:58:00 UTC
This should be fixed by http://hg.netbeans.org/main-golden/rev/2f966201872a
Now the "Unit Tests|TestNG *" options are not available for html/php project types.