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 202774 - [71cat] NullPointerException at org.netbeans.modules.editor.lib2.view.DocumentViewChildren.viewIndexFirstByStartOffset
Summary: [71cat] NullPointerException at org.netbeans.modules.editor.lib2.view.Documen...
Status: RESOLVED DUPLICATE of bug 202588
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
: 202787 202817 202829 203186 203852 204138 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-28 11:44 UTC by stefan79
Modified: 2011-12-02 13:46 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181315


Attachments
stacktrace (3.33 KB, text/plain)
2011-09-28 11:44 UTC, stefan79
Details
stacktrace (3.33 KB, text/plain)
2011-09-29 15:14 UTC, stefan79
Details
stacktrace (3.33 KB, text/plain)
2011-10-04 18:14 UTC, alied
Details
stacktrace (3.33 KB, text/plain)
2011-10-05 13:47 UTC, Exceptions Reporter
Details
stacktrace (3.33 KB, text/plain)
2011-10-05 16:47 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2011-09-28 11:44:40 UTC
Build: NetBeans IDE Dev (Build 201109260601)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows 7

User Comments:
athompson: switched tabs (2 java files)




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.editor.lib2.view.DocumentViewChildren.viewIndexFirstByStartOffset(DocumentViewChildren.java:248)
   at org.netbeans.modules.editor.lib2.view.DocumentView.getViewIndex(DocumentView.java:327)
   at org.netbeans.modules.editor.lib2.view.ViewHierarchyImpl.modelToParagraphView(ViewHierarchyImpl.java:284)
   at org.netbeans.modules.editor.lib2.view.LockedViewHierarchy.modelToParagraphView(LockedViewHierarchy.java:124)
   at org.netbeans.editor.GlyphGutter$6.run(GlyphGutter.java:655)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1404)
Comment 1 stefan79 2011-09-28 11:44:44 UTC
Created attachment 111271 [details]
stacktrace
Comment 2 stefan79 2011-09-28 11:49:26 UTC
After this NPE, IDE was unusable and I had to kill NetBeans.
Comment 3 stefan79 2011-09-29 15:14:42 UTC
Created attachment 111317 [details]
stacktrace
Comment 4 alied 2011-10-04 18:14:49 UTC
Created attachment 111477 [details]
stacktrace

Editing a source file with heavy use of keyboard.
specifically, adding items to a String[]
Comment 5 Exceptions Reporter 2011-10-04 18:15:04 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=181315
Comment 6 Exceptions Reporter 2011-10-05 13:47:48 UTC
Created attachment 111538 [details]
stacktrace

Changed the name of a class. Initially the class had the same name as the file.
Comment 7 Egor Ushakov 2011-10-05 16:47:47 UTC
Created attachment 111553 [details]
stacktrace
Comment 8 Marian Mirilovic 2011-10-06 07:18:17 UTC
*** Bug 202787 has been marked as a duplicate of this bug. ***
Comment 9 Marian Mirilovic 2011-10-06 07:19:38 UTC
*** Bug 202829 has been marked as a duplicate of this bug. ***
Comment 10 Marian Mirilovic 2011-10-06 07:28:01 UTC
*** Bug 203186 has been marked as a duplicate of this bug. ***
Comment 11 Exceptions Reporter 2011-10-07 10:43:57 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=181315
Comment 12 Miloslav Metelka 2011-10-07 12:16:03 UTC
This is a dup of issue 202588.
There was an invalid locking which the mentioned issue has fixed. If possible please use a recent Dev build from

http://bits.netbeans.org/download/trunk/nightly/latest/

the issue should not trigger there.
Comment 13 Miloslav Metelka 2011-10-07 12:16:55 UTC

*** This bug has been marked as a duplicate of bug 202588 ***
Comment 14 Miloslav Metelka 2011-10-18 08:33:23 UTC
*** Bug 203852 has been marked as a duplicate of this bug. ***
Comment 15 Miloslav Metelka 2011-10-18 10:20:35 UTC
*** Bug 202817 has been marked as a duplicate of this bug. ***
Comment 16 Miloslav Metelka 2011-12-02 13:46:26 UTC
*** Bug 204138 has been marked as a duplicate of this bug. ***