summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-04 20:39:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-04 20:58:28 +0100
commit9359f4747181ae93f777f224a9f64a832d5b806c (patch)
treed69de931d23356bf5f076a8e27859c8026fae5ae /sw
parent1b7e435d9e2c0c2dae6ddabc31c92c8374f8ccab (diff)
coverity#704951 Explicit null dereferenced
Change-Id: I0f1cf705d0eea78b5bf44e0d6b882f7c8636a6ac
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unochart.cxx3
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)