summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx3
1 files changed, 3 insertions, 0 deletions
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