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 195610 - NullPointerException at org.netbeans.modules.editor.EditorModule.reformat
Summary: NullPointerException at org.netbeans.modules.editor.EditorModule.reformat
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-17 11:41 UTC by Alexander Simon
Modified: 2011-02-19 10:35 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 176737


Attachments
stacktrace (7.23 KB, text/plain)
2011-02-17 11:41 UTC, Alexander Simon
Details
stacktrace (7.72 KB, text/plain)
2011-02-18 14:07 UTC, Sc0tTyXL
Details
Screenshot (326.11 KB, image/png)
2011-02-18 14:20 UTC, Sc0tTyXL
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2011-02-17 11:41:40 UTC
Build: NetBeans IDE Dev (Build 110217-1bfa49e5a298)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: SunOS

User Comments:
GUEST: Creating new folder in project




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.editor.EditorModule.reformat(EditorModule.java:658)
   at org.netbeans.modules.editor.EditorModule.access$100(EditorModule.java:106)
   at org.netbeans.modules.editor.EditorModule$6.operationCreateFromTemplate(EditorModule.java:352)
   at org.openide.loaders.DataLoaderPool.fireOperationEvent(DataLoaderPool.java:240)
   at org.openide.loaders.DataObject.fireOperationEvent(DataObject.java:848)
   at org.openide.loaders.DataObject.createFromTemplate(DataObject.java:821)
Comment 1 Alexander Simon 2011-02-17 11:41:47 UTC
Created attachment 106111 [details]
stacktrace
Comment 2 Sc0tTyXL 2011-02-18 14:07:07 UTC
Created attachment 106154 [details]
stacktrace

Tried to create a new folder in my project.
Comment 3 Exceptions Reporter 2011-02-18 14:07:17 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=176737
Comment 4 Sc0tTyXL 2011-02-18 14:19:48 UTC
When the error is reported, the only way out is pressing cancel.
The folder is created btw.

Checkout the screenshot i posted
Comment 5 Sc0tTyXL 2011-02-18 14:20:33 UTC
Created attachment 106156 [details]
Screenshot
Comment 6 Jan Lahoda 2011-02-18 14:21:39 UTC
http://hg.netbeans.org/jet-main/rev/3b3628552b4d
Comment 7 Quality Engineering 2011-02-19 10:35:23 UTC
Integrated into 'main-golden', will be available in build *201102190501* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3b3628552b4d
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #195610: preventing NPE.