NPE after Copy/Paste of Entity from one EO Model to another
-----------------------------------------------------------
Key: WOL-892
URL: http://issues.objectstyle.org/jira/browse/WOL-892
Project: WOProject/WOLips
Issue Type: Bug
Components: wolips
Affects Versions: WOLips 3.3.2.* (nightly build please specify)
Environment: OS X 10.5.4, WO 5.3, Eclipse 3.4, WOLips 3.4.5441
Reporter: Chris Walters
Priority: Minor
I tried to copy and then paste an entity in EntityModeler between 2 EOModels (in different Eclipse WO Framework projects). When pasting, I get the following exceptions):
org.eclipse.core.commands.ExecutionException: While executing the operation, an exception occurred
at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:519)
at org.objectstyle.wolips.eomodeler.actions.PasteAction.run(PasteAction.java:116)
at org.objectstyle.wolips.eomodeler.actions.PasteAction.runWithEvent(PasteAction.java:124)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:619)
at org.eclipse.ui.menus.CommandContributionItem.access$10(CommandContributionItem.java:605)
at org.eclipse.ui.menus.CommandContributionItem$4.handleEvent(CommandContributionItem.java:595)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3474)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3064)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
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:382)
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:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: java.lang.NullPointerException
at org.objectstyle.wolips.eomodeler.core.model.EOJoin.pasted(EOJoin.java:127)
at org.objectstyle.wolips.eomodeler.core.model.EORelationship.pasted(EORelationship.java:213)
at org.objectstyle.wolips.eomodeler.core.model.EOEntity.pasted(EOEntity.java:256)
at org.objectstyle.wolips.eomodeler.core.model.EOModel.addEntity(EOModel.java:643)
at org.objectstyle.wolips.eomodeler.core.model.EOModel.addEntity(EOModel.java:635)
at org.objectstyle.wolips.eomodeler.core.model.EOEntity._addToModelParent(EOEntity.java:2557)
at org.objectstyle.wolips.eomodeler.core.model.EOEntity._addToModelParent(EOEntity.java:76)
at org.objectstyle.wolips.eomodeler.actions.AddOperation.execute(AddOperation.java:33)
at org.objectstyle.wolips.eomodeler.actions.SimpleCompositeOperation.execute(SimpleCompositeOperation.java:33)
at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:511)
... 37 more
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
This archive was generated by hypermail 2.0.0 : Wed Sep 10 2008 - 16:19:18 EDT