Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349650 - [Papyrus Merge] IndexOfBoundException
Summary: [Papyrus Merge] IndexOfBoundException
Status: CLOSED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.9.0   Edit
Assignee: Vincent Lorenzo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-17 03:29 EDT by Vincent Lorenzo CLA
Modified: 2013-03-13 10:08 EDT (History)
0 users

See Also:


Attachments
add a test to avoid an IndexOfBoundException (950 bytes, patch)
2011-06-17 03:33 EDT, Vincent Lorenzo CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lorenzo CLA 2011-06-17 03:29:24 EDT
Sometimes, when you select an element in the merge viewer, you get an IndexOutOfBoundsException.
	1/ compare 2 versions of the same uml file with EMF Compare
	2/ select the Papyrus UML Comparator for the visualization of the differences
	3/ Select the root of the model : 
	you get the following exception :
	

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(Unknown Source)
	at java.util.ArrayList.get(Unknown Source)
	at org.eclipse.papyrus.compare.ui.viewer.content.part.UMLModelContentMergeTabFolder.findMatchFromElement(UMLModelContentMergeTabFolder.java:103)
	at org.eclipse.emf.compare.ui.viewer.content.part.ModelContentMergeTabFolder$7.widgetSelected(ModelContentMergeTabFolder.java:569)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Comment 1 Vincent Lorenzo CLA 2011-06-17 03:33:30 EDT
Created attachment 198162 [details]
add a test to avoid an IndexOfBoundException

I'm a Papyrus Commiter. This patch will be commited after the Papyrus release 0.8.0
Comment 2 Vincent Lorenzo CLA 2013-03-13 10:08:11 EDT
This bug can be marked as closed fixed.