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 167261 - NullPointerException at org.netbeans.api.project.ProjectUtils.getSources
Summary: NullPointerException at org.netbeans.api.project.ProjectUtils.getSources
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Jancura
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
: 167239 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-17 20:19 UTC by mjreged
Modified: 2009-09-09 14:38 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 152718


Attachments
stacktrace (3.43 KB, text/plain)
2009-06-17 20:19 UTC, mjreged
Details
stacktrace (3.35 KB, text/plain)
2009-06-18 16:02 UTC, giiulio
Details
stacktrace (3.43 KB, text/plain)
2009-06-19 09:22 UTC, _ theanuradha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mjreged 2009-06-17 20:19:47 UTC
Build: NetBeans IDE Dev (Build 200906170201)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments:
GUEST: Trying to create a new class in a Maven based project

mjreged: Right clicked on a package and tried to create an empty class



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.api.project.ProjectUtils.getSources(ProjectUtils.java:101)
        at org.netbeans.modules.java.project.NewJavaFileWizardIterator.createPanels(NewJavaFileWizardIterator.java:99)
        at org.netbeans.modules.java.project.NewJavaFileWizardIterator.initialize(NewJavaFileWizardIterator.java:173)
        at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.initialize(TemplateWizard.java:1008)
        at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:100)
        at org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(TemplateWizardIteratorWrapper.java:76)
Comment 1 mjreged 2009-06-17 20:19:53 UTC
Created attachment 83722 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-06-18 14:29:00 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=152718
Comment 3 giiulio 2009-06-18 16:02:11 UTC
Build: NetBeans IDE Dev (Build 200906180201)
VM: Java HotSpot(TM) Client VM, 1.5.0_14-b03, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_14-b03
OS: Windows XP, 5.1, x86

User Comments: 
I try to create a pakage and a folder

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.api.project.ProjectUtils.getSources(ProjectUtils.java:101)
        at org.netbeans.modules.java.project.NewJavaFileWizardIterator.createPanels(NewJavaFileWizardIterator.java:99)
        at org.netbeans.modules.java.project.NewJavaFileWizardIterator.initialize(NewJavaFileWizardIterator.java:173)
        at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.initialize(TemplateWizard.java:1008)
        at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:100)
        at org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(TemplateWizardIteratorWrapper.java:76)
Comment 4 giiulio 2009-06-18 16:02:21 UTC
Created attachment 83757 [details]
stacktrace
Comment 5 Exceptions Reporter 2009-06-18 16:02:36 UTC
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=152718
Comment 6 _ theanuradha 2009-06-19 09:22:31 UTC
Build: NetBeans IDE Dev (Build 090616)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.api.project.ProjectUtils.getSources(ProjectUtils.java:101)
        at org.netbeans.modules.java.project.NewJavaFileWizardIterator.createPanels(NewJavaFileWizardIterator.java:99)
        at org.netbeans.modules.java.project.NewJavaFileWizardIterator.initialize(NewJavaFileWizardIterator.java:173)
        at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.initialize(TemplateWizard.java:1008)
        at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:100)
        at org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(TemplateWizardIteratorWrapper.java:76)
Comment 7 _ theanuradha 2009-06-19 09:22:42 UTC
Created attachment 83792 [details]
stacktrace
Comment 8 Exceptions Reporter 2009-06-19 09:23:28 UTC
This issue already has 8 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=152718
Comment 9 Jan Stola 2009-07-21 11:02:59 UTC
*** Issue 167239 has been marked as a duplicate of this issue. ***
Comment 10 Exceptions Reporter 2009-08-05 00:46:25 UTC
This issue already has 21 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=152718
Comment 11 Jan Jancura 2009-08-05 13:25:51 UTC
I can not reproduce this issue. The strange thing is that NewTemplateAction is used in place of NewFile one.
But whenever I try to reproduce this issue NewFile is used. I have tried different usecases like Favorites view,
creating of file during scannig, features on demand, empty package, new package...
Still cannot reproduce.
Comment 12 David Strupl 2009-09-09 14:38:12 UTC
As we are not able to reproduce in 6.8 I am marking this as incomplete. If there are reports in dev build after 6.7.1
and before 6.8, let's remove the keyword.