瀏覽代碼

Added check whether the package AND the package name are not null (#1371)

jthoene 8 年之前
父節點
當前提交
8fe1ed25b0

+ 1 - 1
plugins/org.yakindu.sct.simulation.core.sexec/src/org/yakindu/sct/simulation/core/sexec/interpreter/DefaultExecutionSlotResolver.xtend

@@ -117,7 +117,7 @@ class DefaultExecutionSlotResolver implements IExecutionSlotResolver {
 	
 	def protected ExecutionSlot packageNamespaceAwareResolve(ExecutionContext context, EObject element) {
 		val pkg = EcoreUtil2.getContainerOfType(element, Package)
-		if (pkg != null) {
+		if (pkg != null && pkg.name != null) {
 			context.getSlot(pkg.name + "." + element.fullyQualifiedName.toString)
 		}
 		else {