summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-01 11:36:01 +0100
committerAndras Timar <andras.timar@collabora.com>2019-08-22 12:33:07 +0200
commitb59ee8aa779e4d3f4b82f36bf9559ecd418a1cdc (patch)
treeb7d3420f6859d90471d860763e8f6c56524d3f80
parent6ef8011626890c7d1ca475ba9907b0f0c25860b3 (diff)
forcepoint#63 null deref
Change-Id: Ib22ff870cd0d8cdd2350b2aa8698f5a2e3866bdc Reviewed-on: https://gerrit.libreoffice.org/58411 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> (cherry picked from commit 9a0e5aeca5a118e748e625f6ecbd49a497b8e232)
-rw-r--r--filter/source/xsltfilter/OleHandler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/xsltfilter/OleHandler.cxx b/filter/source/xsltfilter/OleHandler.cxx
index 2f2bd04f9eef..057b69ada620 100644
--- a/filter/source/xsltfilter/OleHandler.cxx
+++ b/filter/source/xsltfilter/OleHandler.cxx
@@ -97,7 +97,7 @@ namespace XSLT
OString SAL_CALL
OleHandler::encodeSubStorage(const OUString& streamName)
{
- if (!m_storage->hasByName(streamName))
+ if (!m_storage || !m_storage->hasByName(streamName))
{
return "Not Found:";// + streamName;
}