Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Gerbig2015-10-23 11:13:29 -0400
committerRalph Gerbig2015-10-23 11:23:53 -0400
commitc2ad23bf9a4b5a9d0c35844507856f9c3546c8ad (patch)
treeaa323c564ce69104f646ef40bb8d162ebc37ee87
parent7e3197f37bae0ad5e833d698f63d0cd6a1d6e43d (diff)
downloadorg.eclipse.gmf-tooling-c2ad23bf9a4b5a9d0c35844507856f9c3546c8ad.tar.gz
org.eclipse.gmf-tooling-c2ad23bf9a4b5a9d0c35844507856f9c3546c8ad.tar.xz
org.eclipse.gmf-tooling-c2ad23bf9a4b5a9d0c35844507856f9c3546c8ad.zip
[480502] Similar NPEs
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/CustomTabFilterImpl.java6
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/ElementTypeImpl.java6
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenApplicationImpl.java9
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenDiagramImpl.java20
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenDiagramUpdaterImpl.java2
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenEditorViewImpl.java6
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenExpressionProviderContainerImpl.java2
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenNavigatorImpl.java12
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenPluginImpl.java8
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenPropertySheetImpl.java2
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/PaletteImpl.java2
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/TypeTabFilterImpl.java3
12 files changed, 46 insertions, 32 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/CustomTabFilterImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/CustomTabFilterImpl.java
index f3746d44c..b74dbe00f 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/CustomTabFilterImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/CustomTabFilterImpl.java
@@ -111,6 +111,12 @@ public class CustomTabFilterImpl extends EObjectImpl implements CustomTabFilter
if (s != null && s.indexOf('.') != -1) {
return s;
}
+
+ if (getTab() == null || getTab().getSheet() == null
+ || getTab().getSheet().getEditorGen() == null
+ || getTab().getSheet().getEditorGen().getEditor() == null)
+ return s;
+
return getTab().getSheet().getEditorGen().getEditor().getPackageName() + '.' + s;
}
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/ElementTypeImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/ElementTypeImpl.java
index 13e2aca74..48ebf2cc4 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/ElementTypeImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/ElementTypeImpl.java
@@ -174,6 +174,12 @@ public abstract class ElementTypeImpl extends EObjectImpl implements ElementType
public String getUniqueIdentifier() {
String value = getUniqueIdentifierGen();
+
+ if(getDiagramElement() == null || getDiagramElement().getDiagram() == null
+ || getDiagramElement().getDiagram().getEditorGen() == null
+ || getDiagramElement().getDiagram().getEditorGen().getPlugin() == null)
+ return value;
+
if (GenCommonBaseImpl.isEmpty(value)) {
value = getDiagramElement().getDiagram().getEditorGen().getPlugin().getID() + '.' + getDiagramElement().getUniqueIdentifier();
}
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenApplicationImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenApplicationImpl.java
index af6fd207c..e1b3674db 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenApplicationImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenApplicationImpl.java
@@ -281,7 +281,8 @@ public class GenApplicationImpl extends EObjectImpl implements GenApplication {
public String getID() {
String value = getIDGen();
- if (GenCommonBaseImpl.isEmpty(value)) {
+
+ if (GenCommonBaseImpl.isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getModelID().replace(" ", "") + "Application"; //$NON-NLS-1$ //$NON-NLS-2$
}
return value;
@@ -310,7 +311,7 @@ public class GenApplicationImpl extends EObjectImpl implements GenApplication {
public String getTitle() {
String value = getTitleGen();
- if (GenCommonBaseImpl.isEmpty(value)) {
+ if (GenCommonBaseImpl.isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getModelID() + " Application";
}
return value;
@@ -339,7 +340,7 @@ public class GenApplicationImpl extends EObjectImpl implements GenApplication {
public String getPackageName() {
String value = getPackageNameGen();
- if (GenCommonBaseImpl.isEmpty(value)) {
+ if (GenCommonBaseImpl.isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".application"; //$NON-NLS-1$
}
return value;
@@ -433,7 +434,7 @@ public class GenApplicationImpl extends EObjectImpl implements GenApplication {
public String getPerspectiveId() {
String value = getPerspectiveIdGen();
- if (GenCommonBaseImpl.isEmpty(value)) {
+ if (GenCommonBaseImpl.isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + '.' + getEditorGen().getModelID() + "Perspective"; //$NON-NLS-1$
}
return value;
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenDiagramImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenDiagramImpl.java
index 24fb8edd2..80f748940 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenDiagramImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenDiagramImpl.java
@@ -1717,7 +1717,7 @@ public class GenDiagramImpl extends GenCommonBaseImpl implements GenDiagram {
public String getEditCommandsPackageName() {
String value = getEditCommandsPackageNameGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".edit.commands";
}
return value;
@@ -1746,7 +1746,7 @@ public class GenDiagramImpl extends GenCommonBaseImpl implements GenDiagram {
public String getEditHelpersPackageName() {
String value = getEditHelpersPackageNameGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".edit.helpers";
}
return value;
@@ -1775,7 +1775,7 @@ public class GenDiagramImpl extends GenCommonBaseImpl implements GenDiagram {
public String getEditPartsPackageName() {
String value = getEditPartsPackageNameGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".edit.parts";
}
return value;
@@ -1804,7 +1804,7 @@ public class GenDiagramImpl extends GenCommonBaseImpl implements GenDiagram {
public String getEditPoliciesPackageName() {
String value = getEditPoliciesPackageNameGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".edit.policies";
}
return value;
@@ -1833,7 +1833,7 @@ public class GenDiagramImpl extends GenCommonBaseImpl implements GenDiagram {
public String getPreferencesPackageName() {
String value = getPreferencesPackageNameGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".preferences";
}
return value;
@@ -2051,7 +2051,7 @@ public class GenDiagramImpl extends GenCommonBaseImpl implements GenDiagram {
public String getEditingDomainID() {
String value = getEditingDomainIDGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPlugin().getID() + ".EditingDomain"; //$NON-NLS-1$
}
return value;
@@ -2472,7 +2472,7 @@ public class GenDiagramImpl extends GenCommonBaseImpl implements GenDiagram {
public String getProvidersPackageName() {
String value = getProvidersPackageNameGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".providers";
}
return value;
@@ -2501,7 +2501,7 @@ public class GenDiagramImpl extends GenCommonBaseImpl implements GenDiagram {
public String getParsersPackageName() {
String value = getParsersPackageNameGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".parsers";
}
return value;
@@ -2530,7 +2530,7 @@ public class GenDiagramImpl extends GenCommonBaseImpl implements GenDiagram {
public String getNotationViewFactoriesPackageName() {
String value = getNotationViewFactoriesPackageNameGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".view.factories";
}
return value;
@@ -3083,7 +3083,7 @@ public class GenDiagramImpl extends GenCommonBaseImpl implements GenDiagram {
if (!REUSE_ICON_VALUE.equalsIgnoreCase(value)) {
return value;
}
- if (getDomainDiagramElement() != null) {
+ if (getDomainDiagramElement() != null && getEditorGen() != null) {
GenPackage domainMetaModel = getDomainDiagramElement().getGenPackage();
return "../" + getEditorGen().getDomainGenModel().getEditorPluginID() + "/icons/full/obj16/" + domainMetaModel.getPrefix() + "ModelFile.gif";
} else {
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenDiagramUpdaterImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenDiagramUpdaterImpl.java
index a9fd9483f..a7d9fe61d 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenDiagramUpdaterImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenDiagramUpdaterImpl.java
@@ -291,7 +291,7 @@ public class GenDiagramUpdaterImpl extends EObjectImpl implements GenDiagramUpda
public String getUpdateCommandID() {
String value = getUpdateCommandIDGen();
- if (GenCommonBaseImpl.isEmpty(value)) {
+ if (GenCommonBaseImpl.isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".updateDiagram"; //$NON-NLS-1$
}
return value;
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenEditorViewImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenEditorViewImpl.java
index 370b25eac..ec0711bc3 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenEditorViewImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenEditorViewImpl.java
@@ -229,7 +229,7 @@ public class GenEditorViewImpl extends EObjectImpl implements GenEditorView {
public String getPackageName() {
String value = getPackageNameGen();
- if (value == null) {
+ if (value == null && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".part";
}
return value;
@@ -318,7 +318,7 @@ public class GenEditorViewImpl extends EObjectImpl implements GenEditorView {
public String getIconPath() {
String value = getIconPathGen();
if (GenCommonBaseImpl.isEmpty(value)) {
- if (getEditorGen().getDiagram() != null) {
+ if (getEditorGen() != null && getEditorGen().getDiagram() != null) {
return getEditorGen().getDiagram().getCreationWizardIconPath();
} else {
return createDefaultIconPath();
@@ -418,7 +418,7 @@ public class GenEditorViewImpl extends EObjectImpl implements GenEditorView {
public String getContextID() {
String value = getContextIDGen();
- if (GenCommonBaseImpl.isEmpty(value)) {
+ if (GenCommonBaseImpl.isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".ui.diagramContext"; //$NON-NLS-1$
}
return value;
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenExpressionProviderContainerImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenExpressionProviderContainerImpl.java
index 12133cf83..677733661 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenExpressionProviderContainerImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenExpressionProviderContainerImpl.java
@@ -124,7 +124,7 @@ public class GenExpressionProviderContainerImpl extends EObjectImpl implements G
*/
public String getExpressionsPackageName() {
String value = getExpressionsPackageNameGen();
- if(GenCommonBaseImpl.isEmpty(value)) {
+ if(GenCommonBaseImpl.isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".expressions"; //$NON-NLS-1$
}
return value;
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenNavigatorImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenNavigatorImpl.java
index 67ef85434..22ee698ac 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenNavigatorImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenNavigatorImpl.java
@@ -591,7 +591,7 @@ public class GenNavigatorImpl extends EObjectImpl implements GenNavigator {
public String getContentExtensionID() {
String value = getContentExtensionIDGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPlugin().getID() + ".resourceContent";
}
return value;
@@ -679,7 +679,7 @@ public class GenNavigatorImpl extends EObjectImpl implements GenNavigator {
public String getLinkHelperExtensionID() {
String value = getLinkHelperExtensionIDGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPlugin().getID() + ".navigatorLinkHelper";
}
return value;
@@ -709,7 +709,7 @@ public class GenNavigatorImpl extends EObjectImpl implements GenNavigator {
public String getSorterExtensionID() {
String value = getSorterExtensionIDGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPlugin().getID() + ".navigatorSorter";
}
return value;
@@ -738,7 +738,7 @@ public class GenNavigatorImpl extends EObjectImpl implements GenNavigator {
public String getActionProviderID() {
String value = getActionProviderIDGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPlugin().getID() + ".navigatorActionProvider";
}
return value;
@@ -1028,7 +1028,7 @@ public class GenNavigatorImpl extends EObjectImpl implements GenNavigator {
public String getPackageName() {
String value = getPackageNameGen();
- if (value == null) {
+ if (value == null && getEditorGen() != null) {
value = getEditorGen().getPackageNamePrefix() + ".navigator";
}
return value;
@@ -1078,7 +1078,7 @@ public class GenNavigatorImpl extends EObjectImpl implements GenNavigator {
public String getDomainContentExtensionID() {
String value = getDomainContentExtensionIDGen();
- if (isEmpty(value)) {
+ if (isEmpty(value) && getEditorGen() != null) {
value = getEditorGen().getPlugin().getID() + ".domainResourceContent";
}
return value;
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenPluginImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenPluginImpl.java
index e229aefc4..e47525bd0 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenPluginImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenPluginImpl.java
@@ -221,7 +221,7 @@ public class GenPluginImpl extends EObjectImpl implements GenPlugin {
String value = getIDGen();
if (GenCommonBaseImpl.isEmpty(value)) {
String prefix = "design"; //$NON-NLS-1$
- if (getEditorGen().getDomainGenModel() != null) {
+ if (getEditorGen() != null && getEditorGen().getDomainGenModel() != null) {
prefix = getEditorGen().getDomainGenModel().getModelPluginID();
}
if (prefix == null) {
@@ -443,7 +443,7 @@ public class GenPluginImpl extends EObjectImpl implements GenPlugin {
}
private Set<String> getExpressionsRequiredPluginIDs() {
- if(getEditorGen().getExpressionProviders() != null) {
+ if(getEditorGen() != null && getEditorGen().getExpressionProviders() != null) {
for (GenExpressionProviderBase nextProvider : getEditorGen().getExpressionProviders().getProviders()) {
if (nextProvider.getLanguage() == GenLanguage.OCL_LITERAL);
return Collections.singleton("org.eclipse.ocl.ecore"); //$NON-NLS-1$
@@ -475,7 +475,7 @@ public class GenPluginImpl extends EObjectImpl implements GenPlugin {
HashSet<String> pluginIDs = new HashSet<String>();
pluginIDs.add("org.eclipse.emf.validation"); //$NON-NLS-1$
- if(getEditorGen().getAudits() != null) {
+ if(getEditorGen() != null && getEditorGen().getAudits() != null) {
// OCL constraint parser is part of separate feature/plugin: org.eclipse.emf.validation.ocl, need to refer to it explicitly
for (GenAuditRule ar : getEditorGen().getAudits().getRules()) {
GenConstraint constraint = ar.getRule();
@@ -494,7 +494,7 @@ public class GenPluginImpl extends EObjectImpl implements GenPlugin {
}
private Set<String> getMetricsRequiredPluginIDs() {
- if(getEditorGen().getMetrics() != null) {
+ if(getEditorGen() != null && getEditorGen().getMetrics() != null) {
HashSet<String> pluginIDs = new HashSet<String>();
collectGenPackagesRequiredPluginIDs(getEditorGen().getMetrics().getAllTargetedModelPackages(), pluginIDs);
return pluginIDs;
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenPropertySheetImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenPropertySheetImpl.java
index d14b15c18..26f9896f1 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenPropertySheetImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenPropertySheetImpl.java
@@ -183,7 +183,7 @@ public class GenPropertySheetImpl extends EObjectImpl implements GenPropertyShee
public String getPackageName() {
String name = getPackageNameGen();
- if (name == null || name.trim().length() == 0) {
+ if (name == null || name.trim().length() == 0 && getEditorGen() != null) {
return getEditorGen().getPackageNamePrefix() + ".sheet";
}
return name;
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/PaletteImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/PaletteImpl.java
index 5ddfd01f2..f8bf1358d 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/PaletteImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/PaletteImpl.java
@@ -185,7 +185,7 @@ public class PaletteImpl extends EObjectImpl implements Palette {
public String getPackageName() {
String value = getPackageNameGen();
- if (GenCommonBaseImpl.isEmpty(value)) {
+ if (GenCommonBaseImpl.isEmpty(value) && getDiagram() != null && getDiagram().getEditorGen() != null) {
value = getDiagram().getEditorGen().getEditor().getPackageName();
}
return value;
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/TypeTabFilterImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/TypeTabFilterImpl.java
index 7cc3ebd98..67e0f08b9 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/TypeTabFilterImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/TypeTabFilterImpl.java
@@ -121,7 +121,8 @@ public class TypeTabFilterImpl extends EObjectImpl implements TypeTabFilter {
result.addAll(getTypes());
if (getGeneratedTypes().size() > 0) {
for (GeneratedType nextGeneratedType : getGeneratedTypes()) {
- if (nextGeneratedType == GeneratedType.ABSTRACT_NAVIGATOR_ITEM_LITERAL) {
+ if (getTab() != null && getTab().getSheet() != null && getTab().getSheet().getEditorGen() != null
+ && nextGeneratedType == GeneratedType.ABSTRACT_NAVIGATOR_ITEM_LITERAL) {
GenNavigator navigator = getTab().getSheet().getEditorGen().getNavigator();
if (navigator != null) {
result.add(navigator.getAbstractNavigatorItemQualifiedClassName());

Back to the top