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 231008 - IndexOutOfBoundsException: Index: -1, Size: 0
Summary: IndexOutOfBoundsException: Index: -1, Size: 0
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-10 07:10 UTC by Petr Hejl
Modified: 2013-06-11 01:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 201281


Attachments
stacktrace (5.92 KB, text/plain)
2013-06-10 07:10 UTC, Petr Hejl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Hejl 2013-06-10 07:10:48 UTC
Build: NetBeans IDE Dev (Build 20130610-f5456d4e7076)
VM: OpenJDK 64-Bit Server VM, 23.7-b01, OpenJDK Runtime Environment, 1.7.0_21-b02
OS: Linux

User Comments:
phejl: Open knockout sample




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
   at java.util.ArrayList.rangeCheckForAdd(ArrayList.java:612)
   at java.util.ArrayList.add(ArrayList.java:426)
   at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils$SemiTypeResolverVisitor2.leave(ModelUtils.java:1181)
   at jdk.nashorn.internal.ir.UnaryNode.accept(UnaryNode.java:147)
   at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils$SemiTypeResolverVisitor2.getSemiTypes(ModelUtils.java:1098)
   at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils.resolveSemiTypeOfExpression(ModelUtils.java:355)
Comment 1 Petr Hejl 2013-06-10 07:10:50 UTC
Created attachment 135564 [details]
stacktrace
Comment 2 Petr Pisl 2013-06-10 08:33:15 UTC
Fixed in wem-main:
http://hg.netbeans.org/web-main/rev/182a2186395b
Comment 3 Quality Engineering 2013-06-11 01:42:59 UTC
Integrated into 'main-golden', will be available in build *201306102301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/182a2186395b
User: Petr Pisl <ppisl@netbeans.org>
Log: #231008 - IndexOutOfBoundsException: Index: -1, Size: 0