Browse Source

BugfiX: Internal error when simulating operations with no return type

Andreas Mülder 11 years ago
parent
commit
17e409910b

+ 1 - 1
plugins/org.yakindu.sct.simulation.core.sexec/src/org/yakindu/sct/simulation/core/sexec/container/DefaultExecutionContextInitializer.xtend

@@ -77,7 +77,7 @@ class DefaultExecutionContextInitializer implements IExecutionContextInitializer
 	def dispatch create new ExecutionVariableImpl() transform(OperationDefinition op) {
 		it.name = op.fullyQualifiedName.lastSegment
 		it.fqName = op.fullyQualifiedName.toString
-		it.type = new InferredType(op.type)
+		it.type = new InferredType(if(op.type != null) op.type else voidType)
 		it.value = it.type.defaultValue
 	}