Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Gerbig2015-10-23 10:18:57 -0400
committerRalph Gerbig2015-10-23 10:18:57 -0400
commit7e3197f37bae0ad5e833d698f63d0cd6a1d6e43d (patch)
treea29ffcc7e84f15fceabc4ba2c325c3bff7fddcf2
parent53057f1b89dac6cf89cf36becd968e5c4c012d6d (diff)
downloadorg.eclipse.gmf-tooling-7e3197f37bae0ad5e833d698f63d0cd6a1d6e43d.tar.gz
org.eclipse.gmf-tooling-7e3197f37bae0ad5e833d698f63d0cd6a1d6e43d.tar.xz
org.eclipse.gmf-tooling-7e3197f37bae0ad5e833d698f63d0cd6a1d6e43d.zip
[480502] Fixed NPE in GenCustomPropertyTabImpl.getClassName()
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenCustomPropertyTabImpl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenCustomPropertyTabImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenCustomPropertyTabImpl.java
index 0f02448e2..d7e633d0a 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenCustomPropertyTabImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/GenCustomPropertyTabImpl.java
@@ -114,6 +114,11 @@ public class GenCustomPropertyTabImpl extends GenPropertyTabImpl implements GenC
public String getClassName() {
String rv = getClassNameGen();
+
+ //Fix for 480502
+ if(getSheet() == null || getSheet().getEditorGen() == null)
+ return rv;
+
if (rv == null || rv.trim().length() == 0) {
return ((GenEditorGeneratorImpl) getSheet().getEditorGen()).getDomainModelCapName() + "PropertySection";
}

Back to the top