summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/pivottablebuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/oox/pivottablebuffer.cxx')
-rw-r--r--sc/source/filter/oox/pivottablebuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/oox/pivottablebuffer.cxx b/sc/source/filter/oox/pivottablebuffer.cxx
index 23889b790774..2717fff2a610 100644
--- a/sc/source/filter/oox/pivottablebuffer.cxx
+++ b/sc/source/filter/oox/pivottablebuffer.cxx
@@ -1208,7 +1208,7 @@ void PivotTable::finalizeImport()
return;
mpPivotCache = getPivotCaches().importPivotCacheFragment( maDefModel.mnCacheId );
- if( !(mpPivotCache && mpPivotCache->isValidDataSource() && !maDefModel.maName.isEmpty()) )
+ if( !mpPivotCache || !mpPivotCache->isValidDataSource() || maDefModel.maName.isEmpty() )
return;
// clear destination area of the original pivot table