diff options
Diffstat (limited to 'plugins/org.eclipse.emf.edapt.history.edit/src/org/eclipse/emf/edapt/history/recorder/CommandStackListener.java')
-rw-r--r-- | plugins/org.eclipse.emf.edapt.history.edit/src/org/eclipse/emf/edapt/history/recorder/CommandStackListener.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.edapt.history.edit/src/org/eclipse/emf/edapt/history/recorder/CommandStackListener.java b/plugins/org.eclipse.emf.edapt.history.edit/src/org/eclipse/emf/edapt/history/recorder/CommandStackListener.java index 3b7bb75..33a1691 100644 --- a/plugins/org.eclipse.emf.edapt.history.edit/src/org/eclipse/emf/edapt/history/recorder/CommandStackListener.java +++ b/plugins/org.eclipse.emf.edapt.history.edit/src/org/eclipse/emf/edapt/history/recorder/CommandStackListener.java @@ -142,6 +142,9 @@ public class CommandStackListener implements * not detached due to the save mechanism which reloads the metamodel. */ private boolean checkRecorder() { + if (metamodelRecorder == null || metamodelRecorder.getElements().isEmpty()) { + return false; + } return !metamodelRecorder.getElements().get(0).eIsProxy(); } |