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 - NPE from Templates.getTemplate
Summary: NPE from Templates.getTemplate
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 44527 (view as bug list)
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-06-07 20:22 UTC by Jesse Glick
Modified: 2006-03-24 09:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (18.22 KB, text/plain)
2004-06-07 20:23 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
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.