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 262206 - NullPointerException at org.netbeans.lib.editor.util.swing.GapBranchElement.getElementIndex
Summary: NullPointerException at org.netbeans.lib.editor.util.swing.GapBranchElement.g...
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
Depends on:
Reported: 2016-05-24 13:13 UTC by Andrew Krasny
Modified: 2016-07-14 10:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 224188

stacktrace (2.71 KB, text/plain)
2016-05-24 13:13 UTC, Andrew Krasny

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Krasny 2016-05-24 13:13:10 UTC
Build: NetBeans IDE Dev (Build 20160520-0e4d77c492ec)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Mac OS X

User Comments:
akrasny: no particular steps...
Edited remote C++ code, then connection was lost and I reconnected, then pasted some text from buffer into the current file. At this point NPE was rised.

   at org.netbeans.lib.editor.util.swing.GapBranchElement.getElementIndex(
   at org.netbeans.modules.editor.lib2.document.LineRootElement.getElementIndex(
   at org.netbeans.api.editor.document.LineDocumentUtils.getLineIndex(
   at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(
   at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findReferencedObject(
   at org.netbeans.modules.cnd.completion.impl.xref.ReferenceImpl.getReferencedObjectImpl(
Comment 1 Andrew Krasny 2016-05-24 13:13:12 UTC
Created attachment 159860 [details]
Comment 2 Milutin Kristofic 2016-07-14 10:35:33 UTC
Sorry, my mistake. Sending to Mila for review.