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 218679 - NullPointerException at org.openide.text.UndoRedoManager.setPerformingSaveActions
Summary: NullPointerException at org.openide.text.UndoRedoManager.setPerformingSaveAct...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-20 10:35 UTC by Marek Fukala
Modified: 2012-10-22 16:15 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 183154


Attachments
stacktrace (1.93 KB, text/plain)
2012-09-20 10:35 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2012-09-20 10:35:46 UTC
Build: NetBeans IDE Dev (Build 201209200001)
VM: Java HotSpot(TM) Client VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows XP

User Comments:
mfukala: on windows XP I did:
1) created a static web project
2) in the main index.html added class="myclass" to the div element in body
3) invoked "create class in style.css stylesheet"

GUEST: Building a program

cdicarlo: Trying to edit a CSS file.




Stacktrace: 
java.lang.NullPointerException
   at org.openide.text.UndoRedoManager.setPerformingSaveActions(UndoRedoManager.java:224)
   at org.openide.text.CloneableEditorSupport.saveDocument(CloneableEditorSupport.java:1137)
   at org.openide.text.DataEditorSupport.superSaveDoc(DataEditorSupport.java:606)
   at org.openide.text.DataEditorSupport$SaveImpl.run(DataEditorSupport.java:1304)
   at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
   at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:607)
Comment 1 Marek Fukala 2012-09-20 10:35:49 UTC
Created attachment 124636 [details]
stacktrace
Comment 2 David Strupl 2012-10-15 09:13:56 UTC
UndoRedoManager.setPerformingSaveActions is not ready to be called from different threads (as the exception report shows it is called from EDT and also from a RP).
Comment 3 Miloslav Metelka 2012-10-18 13:50:17 UTC
The save actions are now executed together with the actual save in a single atomic locked runnable. UndoRedoManager was updated accordingly.
http://hg.netbeans.org/jet-main/rev/8ee23d61cddf
Comment 4 Quality Engineering 2012-10-19 13:42:41 UTC
Integrated into 'main-golden', will be available in build *201210191216* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8ee23d61cddf
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #218679 - NullPointerException at org.openide.text.UndoRedoManager.setPerformingSaveActions.