summaryrefslogtreecommitdiff
path: root/formula/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-06 09:11:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-08-06 12:49:39 +0200
commit105b3756d88944172d241be316a2207028f2cf20 (patch)
tree6c1ca10cdb593cca9f8f071d81f8b402eac68cc4 /formula/source
parent413b80ed1a9d29f394d0746106f5698e65fe23dc (diff)
cid#1489780 Explicit null dereferenced
Change-Id: Ia6e34b48cdcc4b011c46c576269cdeffab4821ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120100 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'formula/source')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index 39a62ebdc1e4..af9d19f68191 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -281,7 +281,7 @@ void OpCodeList::putDefaultOpCode( const FormulaCompiler::NonConstOpCodeMapPtr&
return;
sKey = OUString::createFromAscii(pKey);
}
- else
+ else if (mpSymbols2)
{
TranslateId pKey;
for (const std::pair<TranslateId, int>* pSymbol = mpSymbols2; pSymbol->first; ++pSymbol)