[
https://jira.jboss.org/browse/TEIIDDES-730?page=com.atlassian.jira.plugin...
]
Barry LaFond resolved TEIIDDES-730.
-----------------------------------
Resolution: Done
Added XMI model checks to prevent accessing null getDiagrams() reference. Basically ignore
XSD files when handling refactoring logic
Refactor > Rename XML Schema works, but gets NPE
------------------------------------------------
Key: TEIIDDES-730
URL:
https://jira.jboss.org/browse/TEIIDDES-730
Project: Teiid Designer
Issue Type: Bug
Components: Modeling
Affects Versions: 7.1.1
Environment: Fedora 12, JDBS 4.0 H25 Beta 2
Reporter: Paul Nittel
Assignee: Barry LaFond
Priority: Blocker
Fix For: 7.1.1
Attachments: Employees.xsd
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)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira