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.
Build 200401131900, jdk 1.4.2_01 Run fresh build and try to create a JFrame form in the sample dir (i.e. in default package). An exception is thrown and the created form is not opened. The same happens for any java file. After opening the file, package statement is incorrect. Looks like caused by fix of issue 38335. java.lang.NullPointerException at org.netbeans.modules.java.JavaDataObject.updateSource(JavaDataObject.java:553) at org.netbeans.modules.java.JavaDataObject.updateSourceStart(JavaDataObject.java:500) at org.netbeans.modules.java.JavaDataObject.updateSourceStart(JavaDataObject.java:476) at org.netbeans.modules.java.JavaDataObject.handleCreateFromTemplate(JavaDataObject.java:697) at org.openide.loaders.DataObject$7.run(DataObject.java:693) at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:89) at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:415) at org.openide.loaders.DataObjectPool.runAtomicAction(DataObjectPool.java:188) at org.openide.loaders.DataObject.invokeAtomicAction(DataObject.java:750) at org.openide.loaders.DataObject.createFromTemplate(DataObject.java:691) at org.netbeans.modules.java.ui.wizard.JavaWizardIterator.instantiateTemplate(JavaWizardIterator.java:176) ...
Well, probably not P1...
I cannot reproduce it. Is it thrown only in sampledir? I'm using the build on old userdir and all is OK.
I can. You have to create a new java file in the default package and not use the default name.
fixed in /cvs/java/src/org/netbeans/modules/java/JavaDataObject.java new revision: 1.174; previous revision: 1.173
Verified.
I forgot.