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 256900 - IndexOutOfBoundsException: Index: 1, Size: 0
Summary: IndexOutOfBoundsException: Index: 1, Size: 0
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-01 15:08 UTC by MackSix
Modified: 2016-05-25 01:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 221446


Attachments
stacktrace (9.36 KB, text/plain)
2015-12-01 15:08 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2015-12-01 15:08:49 UTC
Build: NetBeans IDE Dev (Build 201511240002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b17, Java(TM) SE Runtime Environment, 1.8.0_66-b17
OS: Windows 7

User Comments:
MackSix: 1. Opened up a Mavan Java project. 
2. While scanning, initianted Refacor>>Inspect&Transform. 
3. I got a message saying to wait while scanning in process.
4. When scanning stopped, this exception was thrown and the I&T window popped up.

MackSix: This happend simply by trying to run Refactor>>Inspect & Transform.




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
   at java.util.ArrayList.RangeCheck(ArrayList.java:653)
   at java.util.ArrayList.get(ArrayList.java:429)
   at org.netbeans.modules.java.hints.spiimpl.refactoring.InspectionComboModel.getElementAt(InspectionComboModel.java:90)
   at org.netbeans.modules.java.hints.spiimpl.refactoring.InspectionComboModel.<init>(InspectionComboModel.java:79)
   at org.netbeans.modules.java.hints.spiimpl.refactoring.InspectAndRefactorPanel.initialize(InspectAndRefactorPanel.java:173)
   at org.netbeans.modules.java.hints.spiimpl.refactoring.InspectAndRefactorUI$1$1.run(InspectAndRefactorUI.java:116)
Comment 1 MackSix 2015-12-01 15:08:50 UTC
Created attachment 157587 [details]
stacktrace
Comment 2 MackSix 2015-12-01 15:21:30 UTC
In addition, the I&T window fields were all blank.

Restarting NetBeans solved the problem.
Comment 3 Svata Dedic 2016-05-23 08:37:23 UTC
I wasn't able to reproduce the situation. It seems as some timing-related bug, UI vs. project/classpath initialization. Since the combo is reinitialized fresh on every UI appearance, I just fixed the error: jet-main#7bce36356670
Comment 4 Quality Engineering 2016-05-25 01:50:38 UTC
Integrated into 'main-silver', will be available in build *201605250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7bce36356670
User: Svata Dedic <sdedic@netbeans.org>
Log: #256900: Avoid exception with hints model still initializing