summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-12-07 18:26:34 +0100
committerJani Heikkinen <jani.heikkinen@qt.io>2016-12-08 12:38:45 +0000
commit4704292500b98143eee9b0fb0b6a34a858ed1253 (patch)
treea266991f573656e515b5d2f8214785cdccbb88c6
parentcfade3a4a723c09bb6653c115afc961f8bc42b35 (diff)
Initialize the scxml element's initial transitionv5.8.0-rc1v5.8.0
This prevents TableDataBuilder::visit() from asserting when an empty state chart is processed. Task-number: QTBUG-57499 Change-Id: If5ca4f68101ff72548d43e4c84c02c84b9803017 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
-rw-r--r--src/scxml/qscxmlcompiler_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scxml/qscxmlcompiler_p.h b/src/scxml/qscxmlcompiler_p.h
index 6909c2c..f74e282 100644
--- a/src/scxml/qscxmlcompiler_p.h
+++ b/src/scxml/qscxmlcompiler_p.h
@@ -387,6 +387,7 @@ struct Scxml: public StateContainer, public Node
: Node(xmlLocation)
, dataModel(NullDataModel)
, binding(EarlyBinding)
+ , initialTransition(nullptr)
{}
void add(StateOrTransition *s) Q_DECL_OVERRIDE