diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-04 20:39:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-04 20:58:28 +0100 |
commit | 9359f4747181ae93f777f224a9f64a832d5b806c (patch) | |
tree | d69de931d23356bf5f076a8e27859c8026fae5ae /sw | |
parent | 1b7e435d9e2c0c2dae6ddabc31c92c8374f8ccab (diff) |
coverity#704951 Explicit null dereferenced
Change-Id: I0f1cf705d0eea78b5bf44e0d6b882f7c8636a6ac
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unochart.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx index 8cd98218e80d..4c6ab39ebd7c 100644 --- a/sw/source/core/unocore/unochart.cxx +++ b/sw/source/core/unocore/unochart.cxx @@ -263,6 +263,9 @@ static OUString GetCellRangeName( SwFrmFmt &rTblFmt, SwUnoCrsr &rTblCrsr ) pEndBox = pTmpBox; } + if (!pStartBox) + return aRes; + aRes = pStartBox->GetName(); aRes += ":"; if (pEndBox) |