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 182660 - [69cat] [Editor]NullPointerException at org.netbeans.modules.editor.lib2.view.EditorBoxView.getViewIndexFirst
Summary: [69cat] [Editor]NullPointerException at org.netbeans.modules.editor.lib2.view...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: issues@editor
URL:
Keywords: TEST
: 182909 183084 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-24 11:58 UTC by abajja
Modified: 2010-06-24 13:15 UTC (History)
33 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 166879


Attachments
stacktrace (8.08 KB, text/plain)
2010-03-24 11:58 UTC, abajja
Details
stacktrace (8.73 KB, text/plain)
2010-03-24 14:31 UTC, laurin1
Details
stacktrace (5.90 KB, text/plain)
2010-03-24 14:47 UTC, Alexander Simon
Details
stacktrace (8.73 KB, text/plain)
2010-03-24 15:34 UTC, HTD
Details
stacktrace (8.13 KB, text/plain)
2010-03-25 12:53 UTC, nof8
Details
stacktrace (6.97 KB, text/plain)
2010-03-25 15:09 UTC, laurin1
Details
stacktrace (8.11 KB, text/plain)
2010-03-25 15:09 UTC, laurin1
Details
stacktrace (9.89 KB, text/plain)
2010-03-25 15:40 UTC, Petr Jiricka
Details
stacktrace (4.41 KB, text/plain)
2010-03-26 07:53 UTC, Ondrej Vrabec
Details
stacktrace (5.90 KB, text/plain)
2010-03-26 09:30 UTC, Vladimir Voskresensky
Details
stacktrace (2.10 KB, text/plain)
2010-03-26 17:20 UTC, Jesse Glick
Details
stacktrace (2.10 KB, text/plain)
2010-03-26 17:29 UTC, Jesse Glick
Details
stacktrace (7.15 KB, text/plain)
2010-03-27 12:23 UTC, schkovich
Details
stacktrace (6.32 KB, text/plain)
2010-03-28 17:02 UTC, ingoreinhart
Details
stacktrace (3.16 KB, text/plain)
2010-03-28 17:14 UTC, gholmer
Details
stacktrace (5.90 KB, text/plain)
2010-03-29 07:28 UTC, Alexander Simon
Details
stacktrace (3.77 KB, text/plain)
2010-03-29 09:05 UTC, Jaroslav Tulach
Details
stacktrace (2.10 KB, text/plain)
2010-03-29 12:36 UTC, Jindrich Sedek
Details
stacktrace (2.10 KB, text/plain)
2010-03-29 13:36 UTC, Michel Graciano
Details
stacktrace (2.12 KB, text/plain)
2010-03-29 14:11 UTC, misterm
Details
stacktrace (2.12 KB, text/plain)
2010-03-29 14:15 UTC, misterm
Details
stacktrace (2.10 KB, text/plain)
2010-03-29 14:54 UTC, swpalmer
Details
stacktrace (2.12 KB, text/plain)
2010-03-29 15:08 UTC, Michel Graciano
Details
stacktrace (7.06 KB, text/plain)
2010-03-29 16:15 UTC, abajja
Details
stacktrace (3.24 KB, text/plain)
2010-03-29 16:45 UTC, jasondonmoyer
Details
stacktrace (3.08 KB, text/plain)
2010-03-29 20:53 UTC, franci
Details
stacktrace (3.29 KB, text/plain)
2010-03-29 21:02 UTC, misterm
Details
stacktrace (2.10 KB, text/plain)
2010-03-30 09:24 UTC, Jaromir Uhrik
Details
stacktrace (2.12 KB, text/plain)
2010-03-30 13:38 UTC, stefan79
Details
stacktrace (2.87 KB, text/plain)
2010-03-30 13:39 UTC, stefan79
Details
stacktrace (2.87 KB, text/plain)
2010-03-30 13:40 UTC, stefan79
Details
stacktrace (2.10 KB, text/plain)
2010-03-30 15:56 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description abajja 2010-03-24 11:58:17 UTC
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)
Comment 1 abajja 2010-03-24 11:58:21 UTC
Created attachment 95667 [details]
stacktrace
Comment 2 laurin1 2010-03-24 14:31:26 UTC
Created attachment 95687 [details]
stacktrace
Comment 3 Alexander Simon 2010-03-24 14:47:36 UTC
Created attachment 95691 [details]
stacktrace
Comment 4 Exceptions Reporter 2010-03-24 14:47:48 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=166879
Comment 5 HTD 2010-03-24 15:34:27 UTC
Created attachment 95701 [details]
stacktrace

Options/Editor/Formatting
Comment 6 nof8 2010-03-25 12:53:56 UTC
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%
Comment 7 laurin1 2010-03-25 15:09:08 UTC
Created attachment 95825 [details]
stacktrace
Comment 8 laurin1 2010-03-25 15:09:20 UTC
Created attachment 95826 [details]
stacktrace
Comment 9 Petr Jiricka 2010-03-25 15:40:59 UTC
Created attachment 95835 [details]
stacktrace
Comment 10 Ondrej Vrabec 2010-03-26 07:53:13 UTC
Created attachment 95888 [details]
stacktrace

undo (Ctrl+Z) in editor
Comment 11 Vladimir Voskresensky 2010-03-26 09:30:15 UTC
Created attachment 95897 [details]
stacktrace
Comment 12 Jesse Glick 2010-03-26 17:20:25 UTC
Created attachment 95988 [details]
stacktrace
Comment 13 Jesse Glick 2010-03-26 17:29:40 UTC
Created attachment 95990 [details]
stacktrace

Diff.
Comment 14 schkovich 2010-03-27 12:23:39 UTC
Created attachment 96053 [details]
stacktrace

NullPointerException at org.netbeans.modules.editor.lib2.view.EditorBoxView.getViewIndexFirst

Tools > Options > Editor > Formatting thows NullPointerException
Comment 15 ingoreinhart 2010-03-28 17:02:10 UTC
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.
Comment 16 gholmer 2010-03-28 17:14:10 UTC
Created attachment 96106 [details]
stacktrace

Right-clicked a watch during debugging and selected "Edit" from the context menu. The error comes up repeatedly.
Comment 17 Alexander Simon 2010-03-29 07:28:23 UTC
Created attachment 96129 [details]
stacktrace
Comment 18 Jaroslav Tulach 2010-03-29 09:05:24 UTC
Created attachment 96144 [details]
stacktrace
Comment 19 dnikitin 2010-03-29 12:05:11 UTC
P2 because the bug is the reason of mass failures of tests
Comment 20 Jindrich Sedek 2010-03-29 12:36:28 UTC
Created attachment 96182 [details]
stacktrace

invoking mercurial diff
Comment 21 Michel Graciano 2010-03-29 13:36:29 UTC
Created attachment 96204 [details]
stacktrace
Comment 22 misterm 2010-03-29 14:11:57 UTC
Created attachment 96215 [details]
stacktrace
Comment 23 misterm 2010-03-29 14:15:29 UTC
Created attachment 96218 [details]
stacktrace
Comment 24 swpalmer 2010-03-29 14:54:30 UTC
Created attachment 96234 [details]
stacktrace

opened diff on properties file
Comment 25 Michel Graciano 2010-03-29 15:08:29 UTC
Created attachment 96238 [details]
stacktrace
Comment 26 abajja 2010-03-29 16:15:30 UTC
Created attachment 96247 [details]
stacktrace

Product Version: NetBeans IDE Dev (Build 201003290201)
Comment 27 jasondonmoyer 2010-03-29 16:45:31 UTC
Created attachment 96253 [details]
stacktrace

trying to add a new watch in the debugger from the right click menu of the java editor
Comment 28 franci 2010-03-29 20:53:48 UTC
Created attachment 96280 [details]
stacktrace

imposible to create a new watch
Comment 29 misterm 2010-03-29 21:02:33 UTC
Created attachment 96282 [details]
stacktrace
Comment 30 Alexander Pepin 2010-03-30 09:14:51 UTC
Guys, please fix it ASAP as it breaks all CND formatter tests.
Comment 31 Jaromir Uhrik 2010-03-30 09:24:42 UTC
Created attachment 96305 [details]
stacktrace

-Called Mercurial>Status
-Doubleclicked a locally new java file in the list and the exception appeared.
Comment 32 stefan79 2010-03-30 13:38:44 UTC
Created attachment 96344 [details]
stacktrace

Exception occured after a CVS-commit.
Comment 33 stefan79 2010-03-30 13:39:48 UTC
Created attachment 96345 [details]
stacktrace
Comment 34 stefan79 2010-03-30 13:40:44 UTC
Created attachment 96346 [details]
stacktrace
Comment 35 Miloslav Metelka 2010-03-30 14:39:46 UTC
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.
Comment 36 Jesse Glick 2010-03-30 15:56:45 UTC
Created attachment 96370 [details]
stacktrace
Comment 37 Alexander Pepin 2010-03-30 16:31:09 UTC
Please do not mark the issue as fixed until possible fix is pushed.
bug #182677 is currently in NEW state.
Comment 38 Miloslav Metelka 2010-03-31 08:35:49 UTC
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
Comment 39 Quality Engineering 2010-04-02 04:47:08 UTC
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
Comment 40 Miloslav Metelka 2010-06-24 11:11:56 UTC
*** Bug 182909 has been marked as a duplicate of this bug. ***
Comment 41 Miloslav Metelka 2010-06-24 13:15:42 UTC
*** Bug 183084 has been marked as a duplicate of this bug. ***