diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-19 16:47:42 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-19 16:48:17 -0400 |
commit | e7164ec2858a25a9f57fac199132dea0e70a8555 (patch) | |
tree | c247c45ca5fbbbe4499bc4a5216ecc44066a09cf /sc/source/ui/unoobj/scdetect.cxx | |
parent | 904ef99d87af1bfefe43f6a84f04f019bd082754 (diff) |
Return on NULL right away, to avoid null dereferencing below.
Change-Id: I17b45a5fb6ac5d30be5d3575fec76a61662decdf
Diffstat (limited to 'sc/source/ui/unoobj/scdetect.cxx')
-rw-r--r-- | sc/source/ui/unoobj/scdetect.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx index bdc9ba8a6a57..159b52cc2c23 100644 --- a/sc/source/ui/unoobj/scdetect.cxx +++ b/sc/source/ui/unoobj/scdetect.cxx @@ -632,7 +632,7 @@ OUString SAL_CALL ScFilterDetect::detect( uno::Sequence<beans::PropertyValue>& l } if (!pFilter) - aTypeName.Erase(); + return OUString(); if (nIndexOfFilterName == -1) { |