Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311689 - Exception is thrown out when delete property in User Properties tab and go to Advanced tab
Summary: Exception is thrown out when delete property in User Properties tab and go to...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.6.0 RC1   Edit
Assignee: Chen Chao CLA
QA Contact: Xiaodan Wang CLA
URL:
Whiteboard: Non-Auto
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 05:51 EDT by Xiaodan Wang CLA
Modified: 2010-05-11 22:43 EDT (History)
1 user (show)

See Also:


Attachments
report design (128.50 KB, application/octet-stream)
2010-05-05 05:51 EDT, Xiaodan Wang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xiaodan Wang CLA 2010-05-05 05:51:59 EDT
Created attachment 167098 [details]
report design

Description:
Exception is thrown out when delete property in User Properties tab and go to Advanced tab.

Build number:
2.6.0.v20100505-0630

Steps to reproduce:
1. Open the attached report design, select the chart, go to Property Editor->User Properties.
2. Delete the first property, and go to Property Editor->Advanced.

Expected result:
No exception.

Actual result:
Exception is thrown out.
Comment 1 Xiaodan Wang CLA 2010-05-05 05:52:18 EDT
Error log:
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Index out of bounds)
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2601)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2565)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2399)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:669)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:662)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: java.lang.IllegalArgumentException: Index out of bounds
at org.eclipse.swt.SWT.error(SWT.java:4064)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.SWT.error(SWT.java:3969)
at org.eclipse.swt.widgets.Widget.error(Widget.java:467)
at org.eclipse.swt.widgets.TreeItem.getItem(TreeItem.java:744)
at org.eclipse.birt.report.designer.internal.ui.views.attributes.widget.AdvancePropertyDescriptor.restoreExpandedMemento(AdvancePropertyDescriptor.java:658)
at org.eclipse.birt.report.designer.internal.ui.views.attributes.widget.AdvancePropertyDescriptor.expandTreeFromMemento(AdvancePropertyDescriptor.java:612)
at org.eclipse.birt.report.designer.internal.ui.views.attributes.widget.AdvancePropertyDescriptor.access$8(AdvancePropertyDescriptor.java:605)
at org.eclipse.birt.report.designer.internal.ui.views.attributes.widget.AdvancePropertyDescriptor$7.run(AdvancePropertyDescriptor.java:762)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
... 22 more
Comment 2 Chen Chao CLA 2010-05-06 23:21:57 EDT
Fixed it.

Check if the index in the memory list is bounded.
Comment 3 Xiaodan Wang CLA 2010-05-11 22:43:41 EDT
Verified in build (2.6.0.v20100512-0630), closed.