diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 09:30:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 12:14:34 +0000 |
commit | 5b70a95affa29119bbb0c934bf99ee6755de336e (patch) | |
tree | 8a6b4d1d122e92b6841e9635dedf9ac7ce22a6ac /sc | |
parent | c38a384cddfbdf8c20f01bdb87b170133bc30e59 (diff) |
coverity#1266452 Explicit null dereferenced
Change-Id: I2cc0edfdc432f35233edef4d8fb2a60c34e1fc7f
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr4.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx index 0f09edb1dcc8..28f8e0391340 100644 --- a/sc/source/core/tool/interpr4.cxx +++ b/sc/source/core/tool/interpr4.cxx @@ -1696,9 +1696,8 @@ bool ScInterpreter::ConvertMatrixParameters() const ScComplexRefData& rRef = *p->GetDoubleRef(); ScExternalRefCache::TokenArrayRef pArray; GetExternalDoubleRef(nFileId, aTabName, rRef, pArray); - if (nGlobalError) + if (nGlobalError || !pArray) break; - formula::FormulaToken* pTemp = pArray->First(); if (!pTemp) break; |