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

Bug 360263

Summary: R4E Rule set not accessible
Product: z_Archived Reporter: Jacques Bouthillier <lmcbout>
Component: MylynAssignee: Sebastien Dubois <sebastien.dubois>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: alvaro.sanchez-leon
Version: unspecified   
Target Milestone: 0.9   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Jacques Bouthillier CLA 2011-10-07 13:38:53 EDT
How to reproduce:

- Set in the preferences an existing rules set:
--> The rules set is not openingand:

!ENTRY org.eclipse.ui 4 0 2011-10-07 13:25:38.765
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: 0
	at org.eclipse.mylyn.reviews.r4e.ui.internal.editors.FilePathEditor.getSelection(FilePathEditor.java:169)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.preferences.R4EPreferencePage$2.widgetSelected(R4EPreferencePage.java:411)
	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.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215)
	at org.eclipse.ui.internal.handlers.ShowPreferencePageHandler.execute(ShowPreferencePageHandler.java:54)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
Comment 1 Sebastien Dubois CLA 2011-10-11 12:26:25 EDT
The problem is fixed by adding a check to see if the current selection of groups/rules in the preferences is valid