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 44481

Summary: NPE from Templates.getTemplate
Product: projects Reporter: Jesse Glick <jglick>
Component: Generic InfrastructureAssignee: Jiri Rechtacek <jrechtacek>
Status: CLOSED FIXED    
Severity: blocker CC: jskrivanek
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    
Attachments: Stack trace

Description Jesse Glick 2004-06-07 20:22:15 UTC
040606. I had pressed Ctrl-N, then selected a
different project, then selected Java Class, then
pressed Next. NPE was thrown and wizard did not
advance.
Comment 1 Jesse Glick 2004-06-07 20:23:09 UTC
Created attachment 15535 [details]
Stack trace
Comment 2 Jesse Glick 2004-06-07 20:27:15 UTC
Note that at the time I had a file selected in the editor from a
different open project. Reproducible in that case, I think. If it
instead go to the Projects tab and select a package in the target
project, it works.
Comment 3 Jiri Rechtacek 2004-06-08 14:40:17 UTC
*** Issue 44527 has been marked as a duplicate of this issue. ***
Comment 4 Jiri Rechtacek 2004-06-09 13:21:53 UTC
fixed in projectui/src/org/netbeans/modules/project/ui/NewFileWizard.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/NewFileWizard.java,v
 <--  NewFileWizard.java
new revision: 1.13; previous revision: 1.12
done
Processing log script arguments...
More commits to come...
Checking in
projectuiapi/src/org/netbeans/spi/project/ui/templates/support/Templates.java;
/cvs/projects/projectuiapi/src/org/netbeans/spi/project/ui/templates/support/Templates.java,v
 <--  Templates.java
new revision: 1.10; previous revision: 1.9
done
Comment 5 Jiri Skrivanek 2004-06-09 14:52:29 UTC
Verified in build 20040609-1236.