diff --git a/slideshow/source/engine/smilfunctionparser.cxx b/slideshow/source/engine/smilfunctionparser.cxx index 3576393751ed..06a2b9639959 100644 --- a/slideshow/source/engine/smilfunctionparser.cxx +++ b/slideshow/source/engine/smilfunctionparser.cxx @@ -313,9 +313,11 @@ namespace slideshow::internal // create combined ExpressionNode std::shared_ptr pNode( maGenerator( pFirstArg, pSecondArg ) ); + + assert(pSecondArg && pFirstArg); + // check for constness - if( pFirstArg->isConstant() && - pSecondArg->isConstant() ) + if (pFirstArg->isConstant() && pSecondArg->isConstant()) { // call the operator() at pNode, store result // in constant value ExpressionNode.