diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-06-11 09:06:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-06-11 13:02:20 +0200 |
commit | bada992cb0ff3fbd9a3e2c5ff2c5d2cc59fa888b (patch) | |
tree | 737feafae0a480c908e14d9d2a02ca67157c3d13 | |
parent | d17e8faa13b1f8d943b602aa6ea754c1b22fdd76 (diff) |
coverity#735800 Dereference after null check
Change-Id: I025569d39ed4497938770b7df21fcef32cc83825
Reviewed-on: https://gerrit.libreoffice.org/55600
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/filter/xml/xmlimprt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx index 902070025fe8..36f3c3f8baa9 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -1806,7 +1806,7 @@ void SAL_CALL ScXMLImport::endDocument() } // There are rows with optimal height which need to be updated - if (!maRecalcRowRanges.empty()) + if (pDoc && !maRecalcRowRanges.empty()) { bool bLockHeight = pDoc->IsAdjustHeightLocked(); if (bLockHeight) |