Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-1750

Deleting model object with closed editor results in ArrayIndexOutOfBounds exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 8.2
    • 8.1
    • Modeling
    • None

    Description

      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

      Attachments

        Activity

          People

            parichar@redhat.com Paul Richardson
            blafond Barry LaFond
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: