diff --git a/src/storm/storage/jani/Property.cpp b/src/storm/storage/jani/Property.cpp index 063e18ee0..ab4510b70 100644 --- a/src/storm/storage/jani/Property.cpp +++ b/src/storm/storage/jani/Property.cpp @@ -87,7 +87,7 @@ namespace storm { } bool Property::isShieldingProperty() const { - return shieldingExpression.is_initialized(); + return shieldingExpression != boost::none && shieldingExpression.get() != nullptr; } std::shared_ptr Property::getShieldingExpression() const { diff --git a/src/storm/storage/jani/Property.h b/src/storm/storage/jani/Property.h index d2b4ec32e..4f3805afe 100644 --- a/src/storm/storage/jani/Property.h +++ b/src/storm/storage/jani/Property.h @@ -156,7 +156,7 @@ namespace storm { std::set undefinedConstants; // TODO might need refactoring, this cannot be expressed by JANI yet, so this is totally wrong here. - boost::optional> shieldingExpression; + boost::optional> shieldingExpression = boost::none; };