Project: Eclipse_Platform_UI
Bug 33938 [Linked Resources] IllegalArgumentException in PathVariablesGroup.editSelectedVariable
Reported: 2003-03-05 21:36:21 | Status: resolved fixed

build I20030304 Was testing out the Linked Resources pref page. Later noticed two occurrences of the following in the log. Managed to reproduce it with: - add a path variable - deselect it (Edit and Remove are disabled) - disable linked resources - reenable them - Edit and Remove are enabled even though the selection is still empty - press either one - no effect in the ui, but get this exception in the log !MESSAGE Unhandled exception caught in event loop. !ENTRY org.eclipse.ui 4 0 Mar 05, 2003 21:12:48.865 !MESSAGE Index out of bounds !STACK 0 java.lang.IllegalArgumentException: Index out of bounds at org.eclipse.swt.SWT.error(SWT.java:2302) at org.eclipse.swt.SWT.error(SWT.java:2246) at org.eclipse.swt.widgets.Widget.error(Widget.java:381) at org.eclipse.swt.widgets.Table.getItem(Table.java:772) at org.eclipse.ui.internal.dialogs.PathVariablesGroup.editSelectedVariable (PathVariablesGroup.java:221) at org.eclipse.ui.internal.dialogs.PathVariablesGroup.access$3 (PathVariablesGroup.java:219) at org.eclipse.ui.internal.dialogs.PathVariablesGroup$3.widgetSelected (PathVariablesGroup.java:322) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:87) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1775) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1483) at org.eclipse.jface.window.Window.runEventLoop(Window.java:577) at org.eclipse.jface.window.Window.open(Window.java:557) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:53) at org.eclipse.jface.action.Action.runWithEvent(Action.java:842) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:456) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:403) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:397) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:72) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1775) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1483) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1266) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1249) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/PathVariablesGroup.java