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 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)
Created attachment 111286 [details] stacktrace
*** This bug has been marked as a duplicate of bug 202774 ***