summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/smt/smt_engine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smt/smt_engine.h b/src/smt/smt_engine.h
index 5f0511894..53454b109 100644
--- a/src/smt/smt_engine.h
+++ b/src/smt/smt_engine.h
@@ -555,7 +555,7 @@ public:
* Used as a predicate for options preprocessor.
*/
static void beforeSearch(std::string option, bool value, SmtEngine* smt) {
- if(smt->d_queryMade || smt->d_problemExtended) {
+ if(smt != NULL && (smt->d_queryMade || smt->d_problemExtended)) {
std::stringstream ss;
ss << "cannot change option `" << option << "' after assertions have been made";
throw OptionException(ss.str());
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback