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: 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)
Created attachment 124636 [details] stacktrace
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).
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
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.