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 243765 - NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
Summary: NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-11 11:26 UTC by Martin Kanak
Modified: 2014-04-27 01:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 209069


Attachments
stacktrace (1.19 KB, text/plain)
2014-04-11 11:26 UTC, Martin Kanak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kanak 2014-04-11 11:26:14 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
kanakmar: I want to add TestNG file in package




Stacktrace: 
java.lang.NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
   at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:95)
   at org.netbeans.modules.testng.NewTestWizardIterator.instantiate(NewTestWizardIterator.java:132)
   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 Martin Kanak 2014-04-11 11:26:15 UTC
Created attachment 146701 [details]
stacktrace
Comment 2 Theofanis Oikonomou 2014-04-25 15:13:56 UTC
Changeset: 2d63175bd824
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2014-04-25 17:13
Message:
Comment 3 Theofanis Oikonomou 2014-04-25 15:16:01 UTC
Not sure how you got in this state. Added log message and prevented the NPE for now. Thank you for reporting
Comment 4 Quality Engineering 2014-04-27 01:21:56 UTC
Integrated into 'main-silver', will be available in build *201404270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2d63175bd824
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #243765 - NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)