diff --git a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx index 7ec09e455d90..f7aa223f4997 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx @@ -901,6 +901,8 @@ public: std::shared_ptr pFirstArg( std::move(rNodeStack.top()) ); rNodeStack.pop(); + assert(pThirdArg && pSecondArg && pFirstArg); + // create combined ExpressionNode auto pNode = std::make_shared( pFirstArg, pSecondArg, pThirdArg ); // check for constness