diff options
author | cletavernie | 2013-06-12 12:05:17 +0000 |
---|---|---|
committer | cletavernie | 2013-06-12 12:05:17 +0000 |
commit | 3524cc08616d926c882b2971bdd8e4b590e60777 (patch) | |
tree | fe1da232ee11af1e1a59cb13131243a9a5b09ed1 /plugins | |
parent | b1d78a84bc210b658cbaf68cae6eb00f00458f59 (diff) | |
download | org.eclipse.papyrus-3524cc08616d926c882b2971bdd8e4b590e60777.tar.gz org.eclipse.papyrus-3524cc08616d926c882b2971bdd8e4b590e60777.tar.xz org.eclipse.papyrus-3524cc08616d926c882b2971bdd8e4b590e60777.zip |
410583: [Wizard] NPE in the model creation wizard
https://bugs.eclipse.org/bugs/show_bug.cgi?id=410583
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/lifecycleevents/SaveAndDirtyService.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/lifecycleevents/SaveAndDirtyService.java b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/lifecycleevents/SaveAndDirtyService.java index 67b63721dac..fba5f632548 100644 --- a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/lifecycleevents/SaveAndDirtyService.java +++ b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/lifecycleevents/SaveAndDirtyService.java @@ -162,7 +162,7 @@ public class SaveAndDirtyService extends LifeCycleEventsProvider implements ISav private boolean isUnprotected(Transaction transaction) {
return !Boolean.TRUE.equals(transaction.getOptions().get(Transaction.OPTION_UNPROTECTED));
}
-
+
public Command transactionAboutToCommit(ResourceSetChangeEvent event) throws RollbackException {
return null;
}
@@ -395,6 +395,9 @@ public class SaveAndDirtyService extends LifeCycleEventsProvider implements ISav public boolean isDirty() {
// First, look if the model part (EMF) is dirty, else look at the
// Graphical part (GEF/GMF)
+ if(transactionalEditingDomain == null) {
+ return false;
+ }
return ((BasicCommandStack)transactionalEditingDomain.getCommandStack()).isSaveNeeded() || registeredIsaveablePart.isDirty();
}
|