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

Refactor > Rename XML Schema works, but gets NPE

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 7.1.1
    • Fix Version/s: 7.1.1
    • Component/s: Modeling
    • Labels:
      None
    • Environment:

      Fedora 12, JDBS 4.0 H25 Beta 2

    • Steps to Reproduce:
      Hide

      1 - Import the attached XSD
      2 - Refactor > Rename it
      Check the Message Log view for an exception (which likely has no message text)

      Show
      1 - Import the attached XSD 2 - Refactor > Rename it Check the Message Log view for an exception (which likely has no message text)

      Description

      I was executing the Recursive XML Text Source script when I noticed this. The script calls for renaming the XSD after it's been imported. I got the NPE (shown below). I exited the Designer, restarted and did the rename again. Got the exception again.

      Error 2010-12-03 09:51:38.216
      java.lang.NullPointerException
      at com.metamatrix.modeler.diagram.ui.util.DiagramRefactorModelHandler.helpUpdateModelContents(DiagramRefactorModelHandler.java:79)
      at com.metamatrix.modeler.core.refactor.RefactorModelExtensionManager.helpUpdateModelContents(RefactorModelExtensionManager.java:126)
      at com.metamatrix.modeler.core.refactor.ResourceRenameCommand.refactorModelContents(ResourceRenameCommand.java:356)
      at com.metamatrix.modeler.core.refactor.ResourceRefactorCommand.execute(ResourceRefactorCommand.java:226)
      at com.metamatrix.modeler.internal.ui.refactor.actions.RefactorAction$1.execute(RefactorAction.java:126)
      at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
      at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
      at com.metamatrix.modeler.internal.ui.refactor.actions.RefactorAction.executeCommand(RefactorAction.java:138)
      at com.metamatrix.modeler.internal.ui.refactor.actions.RenameRefactorAction$1.run(RenameRefactorAction.java:153)
      at com.metamatrix.ui.internal.viewsupport.UiBusyIndicator.showWhile(UiBusyIndicator.java:80)
      at com.metamatrix.modeler.internal.ui.refactor.actions.RenameRefactorAction.renameFolderOrModel(RenameRefactorAction.java:151)
      at com.metamatrix.modeler.internal.ui.refactor.actions.RenameRefactorAction.run(RenameRefactorAction.java:69)
      at com.metamatrix.modeler.ui.actions.DelegatableAction.run(DelegatableAction.java:118)
      at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      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)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                blafond Barry LaFond
                Reporter:
                pnittel Paul Nittel
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: