Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » NPE on diagram close
NPE on diagram close [message #1001402] Wed, 16 January 2013 16:36 Go to next message
Nick Collier is currently offline Nick CollierFriend
Messages: 20
Registered: July 2009
Junior Member

I'm getting an NPE on the close of my diagram. I've seen the following related messages and there's also a bug report as well.

Here's the stack trace:

!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.commands".
	at org.eclipse.emf.transaction.impl.TransactionImpl.start(
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.startTransaction(
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.runExclusive(
	at org.eclipse.gmf.runtime.diagram.ui.internal.actions.PropertyChangeAction.getPropertyValue(
	at org.eclipse.gmf.runtime.diagram.ui.internal.actions.PropertyChangeAction.getOperationSetPropertyValue(
	at org.eclipse.gmf.runtime.diagram.ui.actions.BooleanPropertyAction.getNewPropertyValue(
	at org.eclipse.gmf.runtime.diagram.ui.internal.actions.PropertyChangeAction.updateTargetRequest(
	at org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction.refresh(
	at org.eclipse.gmf.runtime.diagram.ui.actions.CheckedPropertyAction.refresh(
	at org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.historyNotification(
	at org.eclipse.core.commands.operations.DefaultOperationHistory$
	at org.eclipse.core.commands.operations.DefaultOperationHistory.notifyListeners(
	at org.eclipse.core.commands.operations.DefaultOperationHistory.notifyRemoved(
	at org.eclipse.core.commands.operations.DefaultOperationHistory.internalRemove(
	at org.eclipse.core.commands.operations.DefaultOperationHistory.flushUndo(
	at org.eclipse.core.commands.operations.DefaultOperationHistory.dispose(
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.invalidate(
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.destroy(

Apparently, this is caused by the selection change when the diagram is closing. Is there a workaround for this? What I'd like to do is prevent the TransactionalEditingDomain from executing this transaction if the diagram is closing.


Re: NPE on diagram close [message #1014497 is a reply to message #1001402] Mon, 25 February 2013 23:33 Go to previous message
Thomas Beyer is currently offline Thomas BeyerFriend
Messages: 55
Registered: February 2013
For a quickfix, see update on

Regards Thomas

[Updated on: Mon, 25 February 2013 23:33]

Report message to a moderator

Previous Topic:Updating existing diagrams when model changes
Next Topic:Dependencies to externalize a plugin
Goto Forum:

Current Time: Mon Jun 18 21:31:45 GMT 2018

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

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

Back to the top