Barry LaFond created TEIIDDES-1750:
--------------------------------------
Summary: Deleting model object with closed editor results in
ArrayIndexOutOfBounds exception
Key: TEIIDDES-1750
URL:
https://issues.jboss.org/browse/TEIIDDES-1750
Project: Teiid Designer
Issue Type: Bug
Components: Modeling
Affects Versions: 8.1
Reporter: Barry LaFond
Assignee: Paul Richardson
Priority: Critical
Fix For: 8.2
With no model editors open, select a Table in a model in the explorer and click DELETE
key.
Results in: ava.lang.ArrayIndexOutOfBoundsException: 0
at
org.teiid.designer.core.refactor.ObjectDeleteCommand.getModelResource(ObjectDeleteCommand.java:184)
at
org.teiid.designer.core.refactor.ObjectDeleteCommand.checkDependentResources(ObjectDeleteCommand.java:228)
at
org.teiid.designer.core.refactor.ObjectDeleteCommand.execute(ObjectDeleteCommand.java:350)
at org.teiid.designer.ui.actions.workers.DeleteWorker$1.execute(DeleteWorker.java:206)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Looks like the action may be getting it's selection updated during the async process
of opening the editor so the Model get's selected instead of the original table
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira