summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Interpreter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/Interpreter.cpp')
-rw-r--r--src/uscxml/Interpreter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp
index 5324b9e..95f4658 100644
--- a/src/uscxml/Interpreter.cpp
+++ b/src/uscxml/Interpreter.cpp
@@ -37,9 +37,9 @@ Interpreter::Interpreter() : Arabica::SAX2DOM::Parser<std::string>() {
_thread = NULL;
_sendQueue = NULL;
_parentQueue = NULL;
- _httpServlet = NULL;
_running = false;
_done = false;
+ _httpServlet = NULL;
#ifdef _WIN32
WSADATA wsaData;
@@ -277,7 +277,8 @@ void Interpreter::interpret() {
if (_dataModel) {
_dataModel.assign("_x.args", _cmdLineOptions);
- _dataModel.assign("_ioprocessors['http']", _httpServlet->getDataModelVariables());
+ if (_httpServlet)
+ _dataModel.assign("_ioprocessors['http']", _httpServlet->getDataModelVariables());
}
setupIOProcessors();