diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-21 12:17:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-02-21 18:47:05 +0100 |
commit | 97f41621580d884f59175964dd41898c3a9f9a23 (patch) | |
tree | ab776b33a7ffe19126bf091dbc460a81a9c8cc45 /svx | |
parent | ff215479a8b9296ae26bd3ffab365dfa883a878d (diff) |
cid#1500477 silence Explicit null dereferenced
Change-Id: Ic57c49ce1c65ecca4e87be970e76bf16ba234711
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130273
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx index acbcd00d5f73..7ec09e455d90 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx @@ -864,6 +864,8 @@ public: std::shared_ptr<ExpressionNode> pFirstArg( std::move(rNodeStack.top()) ); rNodeStack.pop(); + assert(pSecondArg && pFirstArg && "count of arg checked before we get here"); + // create combined ExpressionNode auto pNode = std::make_shared<BinaryFunctionExpression>( meFunct, pFirstArg, pSecondArg ); // check for constness |