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>
This commit is contained in:
Caolán McNamara 2022-03-04 15:22:45 +00:00
parent b35571c348
commit 5541b7b1dd

View file

@ -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