From a2565e067b903b6d6ef0ac6c38e18d085a719934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 30 Apr 2016 21:16:43 +0100 Subject: [PATCH] crashtesting: fix ooo123540-1.xlsx etc Change-Id: I178c3e5818f4538bc306694115bc3d1cbe95513e --- formula/source/core/api/FormulaCompiler.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 96bb268c12f1..85037d402877 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