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>2021-10-10 22:29:04 +0200
commit610d19cc0e31c2936579e50b61b0398337b9964b (patch)
treec9d32af4ec18e42e62501f9cb314db055212316c
parentab1e4f2f869834b3bc9daac25f15474f249f03ae (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>
-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 8162e2df978b..4fc3ddcd9ed3 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;
}