cid#1500712 silence Explicit null dereferenced

Change-Id: I5f7fc843fadfde9f1807350fc879ecea22d4817f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130487
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2022-02-24 10:04:31 +00:00
parent ed5503ba4e
commit 81b88be386

View file

@ -313,9 +313,11 @@ namespace slideshow::internal
// create combined ExpressionNode
std::shared_ptr<ExpressionNode> 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.