[Libreoffice-commits] core.git: formula/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 6 10:50:14 UTC 2021


 formula/source/core/api/FormulaCompiler.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 105b3756d88944172d241be316a2207028f2cf20
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Aug 6 09:11:55 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Aug 6 12:49:39 2021 +0200

    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 at redhat.com>

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)


More information about the Libreoffice-commits mailing list