diff --git a/src/storm-parsers/parser/JaniParser.cpp b/src/storm-parsers/parser/JaniParser.cpp index 6c5937cdc..1459a9259 100644 --- a/src/storm-parsers/parser/JaniParser.cpp +++ b/src/storm-parsers/parser/JaniParser.cpp @@ -389,7 +389,7 @@ namespace storm { STORM_LOG_THROW(propertyStructure.count("exp") > 0, storm::exceptions::InvalidJaniException, "Expected an expression at steady state property at " << scope.description); auto rewExpr = parseExpression(propertyStructure["exp"], scope.refine("steady-state operator"), true); - if (!expr.isInitialized() || expr.hasBooleanType()) { + if (!rewExpr.isInitialized() || rewExpr.hasBooleanType()) { std::shared_ptr subformula = parseUnaryFormulaArgument(propertyStructure, formulaContext, opString, scope.refine("Steady-state operator"))[0]; return std::make_shared(subformula, opInfo); }