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 45222 - Save as Template does not work
Summary: Save as Template does not work
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-18 22:15 UTC by Ana.von Klopp
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stacktrace (2.78 KB, text/plain)
2004-06-18 22:16 UTC, Ana.von Klopp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ana.von Klopp 2004-06-18 22:15:21 UTC
See stacktrace
Comment 1 Ana.von Klopp 2004-06-18 22:16:48 UTC
Created attachment 15851 [details]
Stacktrace
Comment 2 Ana.von Klopp 2004-06-18 22:18:59 UTC
There is only a problem with Java files. It works on XML & JSP files 
for example.
Comment 3 Jiri Rechtacek 2004-06-20 19:51:18 UTC
A problem is in java module, there is not assumed that module can be
null. Check the line:
JavaModelPackage model =
JavaMetamodel.getManager().resolveJavaExtent(cp.findOwnerRoot(dob.getPrimaryFile()));
(or the attached stackstack, it's easy reproducible)
Comment 4 Tomas Zezula 2004-06-23 17:38:34 UTC
Checking in src/org/netbeans/modules/java/JavaDataObject.java;
/cvs/java/src/org/netbeans/modules/java/JavaDataObject.java,v  <-- 
JavaDataObject.java
new revision: 1.182; previous revision: 1.181
done
Comment 5 Jiri Prox 2005-07-07 16:29:36 UTC
Verified in 4.2 (2005070601800)