I have some Reference Based Links im my GMF Diagram Editor.
When I create a new Diagram, I´m able to create and delete these links normally. However, When I open a saved Diagram I´m no longer able to delete these links.
Doing some debugs in the DeleteCommand class I found out that eObject.eResource() returns null.
Does anyone has any clue about why it cant find the resource?
I´m using Teneo to persit the diagrams in a database.
"not-null property references a null or transient value" (maybe this is a hibernate specific issue).
Trying to move the links around also throws an exception:
Caused by: java.lang.NullPointerException
at org.eclipse.gmf.runtime.diagram.ui.internal.commands.SetConnectionBendpointsCommand.doExecuteWithResult(SetConnectionBendpointsCommand.java:164)
at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(AbstractTransactionalCommand.java:247)
at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:511)
... 37 more