diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-11-29 23:03:09 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-11-29 23:03:09 +0100 |
commit | d008ebbeedf75765badb1e2e70106da9eabb953b (patch) | |
tree | e958de7b3e8ae9e130741646e6ef87e24aa0996e /unotools/source | |
parent | 438054572e0e20cd8ba2a1cfc436c845acfc7145 (diff) |
Check for empty URLs after all, to avoid warnings from canonic().
Diffstat (limited to 'unotools/source')
-rw-r--r-- | unotools/source/ucbhelper/ucbhelper.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx index 84878161565a..daee93fc2d3a 100644 --- a/unotools/source/ucbhelper/ucbhelper.cxx +++ b/unotools/source/ucbhelper/ucbhelper.cxx @@ -483,6 +483,9 @@ bool utl::UCBContentHelper::IsSubPath( bool utl::UCBContentHelper::EqualURLs( rtl::OUString const & url1, rtl::OUString const & url2) { + if (url1.isEmpty() || url2.isEmpty()) { + return false; + } ucbhelper::ContentBroker * broker = ucbhelper::ContentBroker::get(); if (broker == 0) { throw css::uno::RuntimeException( |