From 0167897dde8c56d418aa210b7310644fc53e7151 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 15 Jul 2014 11:54:21 +0100 Subject: coverity#735799 Dereference after null check Change-Id: Id499cb873938621762f0e213fa17505fefb33574 --- sc/source/filter/xml/xmlexprt.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sc') diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 11f8a9f427cd..2b4cbef96e06 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -1928,6 +1928,8 @@ void ScXMLExport::_ExportContent() sal_Int32 nShapesCount(0); CollectSharedData(nTableCount, nShapesCount); OSL_FAIL("no shared data setted"); + if (!pSharedData) + return; } ScXMLExportDatabaseRanges aExportDatabaseRanges(*this); if (!GetModel().is()) -- cgit