summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-24 10:04:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-24 15:33:16 +0100
commit81b88be38651ae871f68f6a0425da56a12494ae2 (patch)
tree8dd723303968eef75d0a8e9072f5ff1150020e31 /slideshow
parented5503ba4ef2952b5fbc1195692076e858597baa (diff)
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>
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/smilfunctionparser.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/slideshow/source/engine/smilfunctionparser.cxx b/slideshow/source/engine/smilfunctionparser.cxx
index 3576393751ed..06a2b9639959 100644
--- a/slideshow/source/engine/smilfunctionparser.cxx
+++ b/slideshow/source/engine/smilfunctionparser.cxx
@@ -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.