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 4368 - NEW from parametrized template throws NullPointerException
Summary: NEW from parametrized template throws NullPointerException
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: _ pkuzel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-10-08 23:33 UTC by _ pkuzel
Modified: 2008-12-23 10:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ pkuzel 1999-10-08 23:33:24 UTC
1. create new object form template containing __$X$X$X$x__ parameter.
2. the ex. it thrown
3. generated file finish before line containg the parameter.

NOTE: $ follows __

java.lang.NullPointerException:
        at java.util.Hashtable.get(Hashtable.java:321)
        at org.openide.util.MapFormat.processKey(MapFormat.java:141)
        at com.netbeans.developer.modules.loaders.java.JMapFormat.processKey(JMapFormat.java:67)
        at org.openide.util.MapFormat.format(MapFormat.java:223)
        at java.text.Format.format(Format.java:129)
        at org.openide.loaders.FileEntry$Format.createFromTemplate(FileEntry.java:167)
        at org.openide.loaders.MultiDataObject.handleCreateFromTemplate(MultiDataObject.java:436)

        at com.netbeans.developer.modules.loaders.java.JavaDataObject.handleCreateFromTemplate(JavaDataObject.java:378)
        at org.openide.loaders.DataObject$6.run(DataObject.java:638)
        at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:414)
        at org.openide.loaders.DataObject.createFromTemplate(DataObject.java:636)
        at com.netbeans.enterprise.modules.group.GroupShadow.handleCreateFromTemplate(GroupShadow.java:475)
        at org.openide.loaders.DataObject$6.run(DataObject.java:638)
        at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:414)
        at org.openide.loaders.DataObject.createFromTemplate(DataObject.java:636)
        at org.openide.actions.NewTemplateAction$TemplateActionListener.accept(NewTemplateAction.java:175)
        at org.openide.explorer.view.MenuView$MenuItem.doClick(MenuView.java:497)
Comment 1 Marian Mirilovic 2002-05-09 10:03:47 UTC
closed