Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362896 - Find is broken: java.lang.ArrayIndexOutOfBoundsException: -1
Summary: Find is broken: java.lang.ArrayIndexOutOfBoundsException: -1
Status: CLOSED FIXED
Alias: None
Product: CBI
Classification: Technology
Component: CBI p2 Repository Aggregator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 08:36 EDT by Miles Daffin CLA
Modified: 2016-09-16 15:51 EDT (History)
2 users (show)

See Also:


Attachments
Aggregaotr model that can be used to reproduce the AIOOBE (1.27 KB, text/plain)
2011-11-04 08:37 EDT, Miles Daffin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miles Daffin CLA 2011-11-04 08:36:12 EDT
Build Identifier: 

When I run a find on the attached model, from anywhere in the model, I consistently get the following exception:

java.lang.ArrayIndexOutOfBoundsException: -1
	at java.util.ArrayList.get(ArrayList.java:324)
	at org.eclipse.b3.aggregator.p2.util.MetadataRepositoryResourceImpl.getNextNode(MetadataRepositoryResourceImpl.java:1032)
	at org.eclipse.b3.aggregator.p2.util.MetadataRepositoryResourceImpl.findIU(MetadataRepositoryResourceImpl.java:899)
	at org.eclipse.b3.aggregator.p2.util.MetadataRepositoryResourceImpl.findIUPresentation(MetadataRepositoryResourceImpl.java:621)
	at org.eclipse.b3.aggregator.presentation.AggregatorEditor.findNextIU(AggregatorEditor.java:1366)
	at org.eclipse.b3.aggregator.presentation.FindIUDialog.performFind(FindIUDialog.java:256)
	at org.eclipse.b3.aggregator.presentation.FindIUDialog.performAction(FindIUDialog.java:217)
	at org.eclipse.b3.aggregator.presentation.FindIUDialog.buttonPressed(FindIUDialog.java:82)



Reproducible: Always

Steps to Reproduce:
1. Open attached model
2. Pref Ctrl + f
3. Enter something in the IU ID field and press 'Find'
Comment 1 Miles Daffin CLA 2011-11-04 08:37:49 EDT
Created attachment 206462 [details]
Aggregaotr model that can be used to reproduce the AIOOBE
Comment 3 Miles Daffin CLA 2011-11-14 09:45:30 EST
Verified fixed. Closing.
Comment 4 David Williams CLA 2016-09-16 15:51:45 EDT
[Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.
Made no changes to assignee's for closed bugs, even though some were old inbox.]