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 201003240200) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP User Comments: GUEST: Open Project Properties - Format Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.lib2.view.EditorBoxView.getViewIndexFirst(EditorBoxView.java:384) at org.netbeans.modules.editor.lib2.view.ViewUpdates.removeUpdate(ViewUpdates.java:301) at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.removeUpdate(PriorityDocumentListenerList.java:99) at javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:243) at org.netbeans.editor.BaseDocument.fireRemoveUpdate(BaseDocument.java:1634) at org.netbeans.editor.BaseDocumentEvent.undo(BaseDocumentEvent.java:291)
Created attachment 95667 [details] stacktrace
Created attachment 95687 [details] stacktrace
Created attachment 95691 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=166879
Created attachment 95701 [details] stacktrace Options/Editor/Formatting
Created attachment 95794 [details] stacktrace 1. run netbeans (no edited files opened - only StartPage) 2. open php file with such contents: <?php $var = 'test'; echo $var; 3.Choose Tools->Options->Editor->Formatting Reproducible 100%
Created attachment 95825 [details] stacktrace
Created attachment 95826 [details] stacktrace
Created attachment 95835 [details] stacktrace
Created attachment 95888 [details] stacktrace undo (Ctrl+Z) in editor
Created attachment 95897 [details] stacktrace
Created attachment 95988 [details] stacktrace
Created attachment 95990 [details] stacktrace Diff.
Created attachment 96053 [details] stacktrace NullPointerException at org.netbeans.modules.editor.lib2.view.EditorBoxView.getViewIndexFirst Tools > Options > Editor > Formatting thows NullPointerException
Created attachment 96103 [details] stacktrace Got this error with an clean install of NetBeans PHP. Open Tools | Options click on Editor icon and change to Formatting. There I select PHP as Language. On my Mac OS X 1.6.2 the same issue.
Created attachment 96106 [details] stacktrace Right-clicked a watch during debugging and selected "Edit" from the context menu. The error comes up repeatedly.
Created attachment 96129 [details] stacktrace
Created attachment 96144 [details] stacktrace
P2 because the bug is the reason of mass failures of tests
Created attachment 96182 [details] stacktrace invoking mercurial diff
Created attachment 96204 [details] stacktrace
Created attachment 96215 [details] stacktrace
Created attachment 96218 [details] stacktrace
Created attachment 96234 [details] stacktrace opened diff on properties file
Created attachment 96238 [details] stacktrace
Created attachment 96247 [details] stacktrace Product Version: NetBeans IDE Dev (Build 201003290201)
Created attachment 96253 [details] stacktrace trying to add a new watch in the debugger from the right click menu of the java editor
Created attachment 96280 [details] stacktrace imposible to create a new watch
Created attachment 96282 [details] stacktrace
Guys, please fix it ASAP as it breaks all CND formatter tests.
Created attachment 96305 [details] stacktrace -Called Mercurial>Status -Doubleclicked a locally new java file in the list and the exception appeared.
Created attachment 96344 [details] stacktrace Exception occured after a CVS-commit.
Created attachment 96345 [details] stacktrace
Created attachment 96346 [details] stacktrace
Fix for issue #182677 should eliminate this problem as well since it checks for null DocumentView's children which is a reason for EditorBoxView.getViewIndexFirst() failure.
Created attachment 96370 [details] stacktrace
Please do not mark the issue as fixed until possible fix is pushed. bug #182677 is currently in NEW state.
My sincerest apologies, I've made a typo in the bug number. The bug that carries a fix for this problem is issue #182875 and the changeset is http://hg.netbeans.org/jet-main/rev/df33d1087214
Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/223cb2ad9f2c User: Alexander Simon <alexvsimon@netbeans.org> Log: Isolate influence of BZ#182660 [69cat] [Editor]NullPointerException at org.netbeans.modules.editor.lib2.view.EditorBoxView.getViewIndexFirst
*** Bug 182909 has been marked as a duplicate of this bug. ***
*** Bug 183084 has been marked as a duplicate of this bug. ***