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 202787 - [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 202774
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:
Depends on:
Blocks:
 
Reported: 2011-09-28 16:17 UTC by mrpc
Modified: 2011-10-06 07:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181442


Attachments
stacktrace (3.41 KB, text/plain)
2011-09-28 16:17 UTC, mrpc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mrpc 2011-09-28 16:17:00 UTC
Build: NetBeans IDE Dev (Build 201109260601)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02-383, Java(TM) SE Runtime Environment, 1.6.0_26-b03-383-11A511
OS: Mac OS X

User Comments:
meva: I use Cmd-Shift-C to comment out a line in a PHP file. The line contained the text "<div>".

mrpc: tried to create a new method in a class, typing:
function display(){
and this happened...




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 mrpc 2011-09-28 16:17:04 UTC
Created attachment 111286 [details]
stacktrace
Comment 2 Marian Mirilovic 2011-10-06 07:18:16 UTC

*** This bug has been marked as a duplicate of bug 202774 ***