diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-12-07 18:26:34 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2016-12-08 12:38:45 +0000 |
commit | 4704292500b98143eee9b0fb0b6a34a858ed1253 (patch) | |
tree | a266991f573656e515b5d2f8214785cdccbb88c6 | |
parent | cfade3a4a723c09bb6653c115afc961f8bc42b35 (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.h | 1 |
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 |