summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-03-04 15:22:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-03-04 22:37:15 +0100
commit5541b7b1dd0d683a7018f7499aec4dbe6626a25a (patch)
tree5c043cea013a245ab081a30763b84b164c28f202 /svx
parentb35571c348eb8816098f7c8786d8cc8ff9082f19 (diff)
cid#1500546 silence Explicit null dereferenced
Change-Id: I44b97965548bd84adf6dc3ec1c67f028a4b31075 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131000 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx2
1 files changed, 2 insertions, 0 deletions
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<ExpressionNode> pFirstArg( std::move(rNodeStack.top()) );
rNodeStack.pop();
+ assert(pThirdArg && pSecondArg && pFirstArg);
+
// create combined ExpressionNode
auto pNode = std::make_shared<IfExpression>( pFirstArg, pSecondArg, pThirdArg );
// check for constness