summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-08-19 16:47:42 -0400
committerFridrich Strba <fridrich@documentfoundation.org>2013-08-20 09:32:40 +0000
commit6215ebbe96c2e827b4e607986372ed8ebaab903e (patch)
tree4e5fb5a86b81083ccfe28fe3cdfceb4d28ddeae4 /sc
parent08ab6d26e082c1646de73b347058fd9063570e13 (diff)
Return on NULL right away, to avoid null dereferencing below.
Change-Id: I17b45a5fb6ac5d30be5d3575fec76a61662decdf (cherry picked from commit e7164ec2858a25a9f57fac199132dea0e70a8555) Reviewed-on: https://gerrit.libreoffice.org/5520 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/scdetect.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index de4959e8527d..ffdb7ea5bf0a 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -637,7 +637,7 @@ OUString SAL_CALL ScFilterDetect::detect( uno::Sequence<beans::PropertyValue>& l
}
if (!pFilter)
- aTypeName.Erase();
+ return OUString();
if (nIndexOfFilterName == -1)
{