Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362896

Summary: Find is broken: java.lang.ArrayIndexOutOfBoundsException: -1
Product: [Technology] CBI Reporter: Miles Daffin <miles.daffin>
Component: CBI p2 Repository AggregatorAssignee: Project Inbox <b3.aggregator-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: thomas, wayne.pascoe
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Aggregaotr model that can be used to reproduce the AIOOBE none

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.]