From d008ebbeedf75765badb1e2e70106da9eabb953b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 29 Nov 2011 23:03:09 +0100 Subject: Check for empty URLs after all, to avoid warnings from canonic(). --- unotools/source/ucbhelper/ucbhelper.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'unotools') 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( -- cgit