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

Caolán McNamara caolanm at redhat.com
Sat Apr 30 20:17:48 UTC 2016


 formula/source/core/api/FormulaCompiler.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit a2565e067b903b6d6ef0ac6c38e18d085a719934
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Apr 30 21:16:43 2016 +0100

    crashtesting: fix ooo123540-1.xlsx etc
    
    Change-Id: I178c3e5818f4538bc306694115bc3d1cbe95513e

diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index 96bb268..85037d4 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -312,6 +312,9 @@ bool isRangeResultOpCode( OpCode eOp )
  */
 bool isPotentialRangeType( FormulaToken* pToken, bool bRPN, bool bRight )
 {
+    if (!pToken)
+        return false;
+
     switch (pToken->GetType())
     {
         case svByte:                // could be range result, but only a few


More information about the Libreoffice-commits mailing list