Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext b/plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext
index 487d120e6..667791675 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext
@@ -23,7 +23,7 @@ boolean hasDocumentRoot(gmfgen::GenDiagram genDiagram) :
;
genmodel::GenClass getDocumentRoot(gmfgen::GenDiagram genDiagram) :
- genDiagram.domainDiagramElement.genPackage.getDocumentRoot()
+ genDiagram.domainDiagramElement == null ? null : genDiagram.domainDiagramElement.genPackage.getDocumentRoot()
;
genmodel::GenFeature getDocumentRootSetFeature(gmfgen::GenDiagram genDiagram) :

Back to the top