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 250191

Summary: NullPointerException at org.netbeans.modules.testng.api.TestNGUtils.createTests
Product: java Reporter: _ gtzabari <gtzabari>
Component: TestNGAssignee: Theofanis Oikonomou <theofanis>
Status: RESOLVED FIXED    
Severity: normal CC: jungi, rjdkolb
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 215169
Attachments: stacktrace

Description _ gtzabari 2015-02-03 19:49:22 UTC
Build: NetBeans IDE Dev (Build 201501300002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-ea-b22
OS: Windows 7

User Comments:
gtzabari: Tried to create a TestNG unit test using template.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.testng.api.TestNGUtils.createTests(TestNGUtils.java:89)
   at org.netbeans.modules.testng.ui.wizards.NewTestWizardIterator.instantiate(NewTestWizardIterator.java:163)
   at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1046)
   at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:605)
   at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:439)
   at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248)
Comment 1 _ gtzabari 2015-02-03 19:49:24 UTC
Created attachment 151799 [details]
stacktrace
Comment 2 Jiri Kovalsky 2015-02-11 12:02:13 UTC
Product Version: NetBeans IDE Dev (Build 201502110001)
Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b17
System: Linux version 3.13.0-24-generic running on amd64; UTF-8; en_US (nb)

Reproduced. Must be fixed in 8.1.
Comment 3 Theofanis Oikonomou 2015-09-03 08:21:04 UTC
Changeset: 0be896817cb2
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2015-09-03 10:20
Message:
Comment 4 Quality Engineering 2015-09-04 01:24:36 UTC
Integrated into 'main-silver', will be available in build *201509040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0be896817cb2
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #250191 - NullPointerException at org.netbeans.modules.testng.api.TestNGUtils.createTests