diff options
author | Eike Rathke <erack@redhat.com> | 2015-04-22 21:45:35 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-04-23 15:17:59 +0200 |
commit | 18cfc7c2d2ea2bad17a07bf8975fd7b9200850b3 (patch) | |
tree | f99077ad86a04b64a6605e00c8aa731a01977451 /formula | |
parent | 812d125a5421a0dc2e99aa75c6059f5de588c281 (diff) |
PeekNext() might be NULL
Change-Id: I2b63e99d25e00b0021986a89dce75f3f678ecb85
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index c8e467821446..e8b24708e555 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1873,7 +1873,7 @@ const FormulaToken* FormulaCompiler::CreateStringFromToken( OUStringBuffer& rBuf // Suppress all TableRef related tokens, the resulting // range was written by CreateStringFromIndex(). const FormulaToken* p = pArr->PeekNext(); - if (p->GetOpCode() == ocTableRefOpen) + if (p && p->GetOpCode() == ocTableRefOpen) { p = pArr->Next(); int nLevel = 0; |