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 197120

Summary: ArrayIndexOutOfBoundsException: -1
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: Alexander Simon <alexvsimon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 177658
Attachments: stacktrace

Description soldatov 2011-03-26 19:39:55 UTC
This issue was reported manually by vv159170.
It already has 1 duplicates 


Build: NetBeans IDE 7.0 RC1 (Build 201103170000)
VM: Java HotSpot(TM) Client VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06
OS: SunOS

User Comments:
soldatov: Call "Failed #include/#error Directives" window and select some node




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
   at org.netbeans.modules.cnd.modelimpl.csm.core.Line2Offset._getStartLineOffset(Line2Offset.java:165)
   at org.netbeans.modules.cnd.modelimpl.csm.core.Line2Offset.getLineColumnByOffset(Line2Offset.java:76)
   at org.netbeans.modules.cnd.modelimpl.csm.core.AbstractFileBuffer.getLineColumnByOffset(AbstractFileBuffer.java:155)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getLineColumn(FileImpl.java:1851)
   at org.netbeans.modules.cnd.modelimpl.csm.core.LazyOffsPositionImpl.getLine(LazyOffsPositionImpl.java:71)
   at org.netbeans.modules.cnd.highlight.error.includes.ErrorIncludeDialog$11.run(ErrorIncludeDialog.java:632)
Comment 1 soldatov 2011-03-26 19:39:58 UTC
Created attachment 107305 [details]
stacktrace
Comment 2 Alexander Simon 2011-04-05 14:12:19 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/f48cac4c61cf
Comment 3 Quality Engineering 2011-04-06 08:46:00 UTC
Integrated into 'main-golden', will be available in build *201104060400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f48cac4c61cf
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #197120 ArrayIndexOutOfBoundsException: -1