Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2019-06-25 11:25:22 -0400
committerHenrik Rentz-Reichert2019-08-09 09:18:06 -0400
commit39770a85b966fb491193f45da4d743724b248c71 (patch)
treea300c2c1f2c374de44d8f8048111cb1bb8f35ced /tests/org.eclipse.etrice.generator.common.tests/models/Bug541775_NoInitialTransition.room
parent733680d60939f3ae14c23d01a7e91a4343106517 (diff)
downloadorg.eclipse.etrice-39770a85b966fb491193f45da4d743724b248c71.tar.gz
org.eclipse.etrice-39770a85b966fb491193f45da4d743724b248c71.tar.xz
org.eclipse.etrice-39770a85b966fb491193f45da4d743724b248c71.zip
Bug 541775 - [generator.fsm] State machine without initial transition
causes null pointer exception in generator * added test * fixed NPE * added validation on genmodel level Change-Id: Ib4f66e88ad995a7a1178312e5a39873bfaf37544
Diffstat (limited to 'tests/org.eclipse.etrice.generator.common.tests/models/Bug541775_NoInitialTransition.room')
-rw-r--r--tests/org.eclipse.etrice.generator.common.tests/models/Bug541775_NoInitialTransition.room24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/org.eclipse.etrice.generator.common.tests/models/Bug541775_NoInitialTransition.room b/tests/org.eclipse.etrice.generator.common.tests/models/Bug541775_NoInitialTransition.room
new file mode 100644
index 000000000..cdeb83a8d
--- /dev/null
+++ b/tests/org.eclipse.etrice.generator.common.tests/models/Bug541775_NoInitialTransition.room
@@ -0,0 +1,24 @@
+RoomModel Bug541775_NoInitialTransition {
+
+ ProtocolClass PDummy {
+ incoming {
+ Message in1
+ }
+ }
+
+ abstract ActorClass ANoInitialTransition {
+ Structure {
+ Port p1: PDummy
+ }
+ Behavior {
+ StateMachine {
+ handler TransitionPoint tr0
+ Transition tr1: my tr0 -> my tr0 {
+ triggers {
+ <in1: p1>
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file

Back to the top