Browse Source

remove runtime exception creation

Menznerowski@gmail.com 11 years ago
parent
commit
a405f7809a

+ 2 - 1
plugins/org.yakindu.sct.model.stext/src/org/yakindu/sct/model/stext/types/STextDefaultTypeSystem.java

@@ -524,7 +524,8 @@ public class STextDefaultTypeSystem extends AbstractTypeSystem implements ISText
 		if (type instanceof EnumerationType) {
 			return ((EnumerationType) type).getEnumerator().get(0);
 		}
-		throw new RuntimeException("No default value for type " + type);
+		return null;
+		
 	}
 
 	public Object defaultValue(InferredType type) {