Parcourir la source

Fixed argument generation for Events without type in observer interfaces.

markus.muehlbrandt@gmail.com il y a 12 ans
Parent
commit
574a8b6cc3

+ 1 - 1
plugins/org.yakindu.sct.generator.java/src/org/yakindu/sct/generator/java/StatemachineInterface.xtend

@@ -113,7 +113,7 @@ class StatemachineInterface {
 			public interface «scope.getInterfaceListenerName()» {
 				«FOR event : scope.eventDefinitions»
 					«IF event.direction ==  Direction::OUT»
-						«IF !event.type.voidType»
+						«IF event.type != null && !event.type.voidType»
 							public void on«event.name.toFirstUpper()»Raised(«event.type.targetLanguageName» value);
 						«ELSE»
 							public void on«event.name.toFirstUpper()»Raised();