Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Null Pointer Exception during drag and drop in emf editor: appeared in 2.7
Null Pointer Exception during drag and drop in emf editor: appeared in 2.7 [message #736251] Thu, 13 October 2011 19:33
Eclipse UserFriend
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi, <br>
<br>
I have a very strange bug in EMF with Eclipse 3.7.1 which was not
before in version 3.6. <br>
<br>
When I try to do a move of one node in my EMF based editor, I get a
null pointer exception.<br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=4275" alt=""><br>
<br>
I have absolutely no exception from my custom packages, so I would
like to know if any of you have the same problem. Same exception
appears with the generic editor generated by EMF since the null
pointer is really embedded into the EClassImpl<br>
<br>
<br>
Below is the stack trace and EMF plugins versions: <br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=4276" alt=""><br>
<br>
Any help will be greatly appreciated<br>
<br>
Mircea<br>
<br>
<br>
java.lang.NullPointerException<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.emf.ecore.impl.EClassImpl.getFeatureID(EClassImpl.java:1466)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.emf.ecore.util.BasicExtendedMetaData.getAffiliation(BasicExtendedMetaData.java:1339)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.emf.edit.command.SetCommand.prepare(SetCommand.java:525)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.emf.common.command.AbstractCommand.canExecute(AbstractCommand.java:114)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.emf.edit.command.AbstractOverrideableCommand.doCanExecute(AbstractOverrideableCommand.java:120)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.emf.edit.command.AbstractOverrideableCommand.canExecute(AbstractOverrideableCommand.java:113)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.emf.edit.command.DragAndDropCommand.prepareDropLinkOn(DragAndDropCommand.java:801)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.emf.edit.command.DragAndDropCommand.prepareDropOn(DragAndDropCommand.java:707)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.emf.edit.command.DragAndDropCommand.prepare(DragAndDropCommand.java:307)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.emf.common.command.AbstractCommand.canExecute(AbstractCommand.java:114)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter.helper(EditingDomainViewerDropAdapter.java:324)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter.dragEnter(EditingDomainViewerDropAdapter.java:143)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:60)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)<br>
&nbsp;&nbsp;&nbsp; at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)<br>
&nbsp;&nbsp;&nbsp; at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)<br>
&nbsp;&nbsp;&nbsp; at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)<br>
&nbsp;&nbsp;&nbsp; at org.eclipse.swt.dnd.DropTarget.DragEnter(DropTarget.java:297)<br>
&nbsp;&nbsp;&nbsp; at org.eclipse.swt.dnd.DropTarget$3.method3(DropTarget.java:243)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.swt.internal.ole.win32.COMObject.callback3(COMObject.java:92)<br>
&nbsp;&nbsp;&nbsp; at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native
Method)<br>
&nbsp;&nbsp;&nbsp; at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)<br>
&nbsp;&nbsp;&nbsp; at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)<br>
&nbsp;&nbsp;&nbsp; at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)<br>
&nbsp;&nbsp;&nbsp; at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)<br>
&nbsp;&nbsp;&nbsp; at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)<br>
</body>
</html>
  • Attachment: gijicdcf.png
    (Size: 2.27KB, Downloaded 208 times)
  • Attachment: aifbffhd.png
    (Size: 23.41KB, Downloaded 220 times)
Previous Topic:Null Pointer Exception during drag and drop in emf editor: appeared in 2.7
Next Topic:Null Pointer Exception during drag and drop in emf editor: appeared in 2.7
Goto Forum:
  


Current Time: Fri Apr 19 05:11:06 GMT 2024

Powered by FUDForum. Page generated in 0.01882 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top