summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-10-11 14:31:09 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-10-11 17:31:18 +0200
commitd45feee6148ed947cae41ae1742361dd50b7c9c4 (patch)
treec00b6e11a5b59756b46ad2b7e83ea30b038230a6 /ucb
parentc767f82403635221af58998a3265e38e8d19e76d (diff)
CMIS UCP: fixed crash when cancelling authentication dialog
Change-Id: Ic7d8382df31e7489497a6bdb14bfa8c6317f11f4
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/cmis/cmis_content.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index 0baee4fdea16..ae448ed087b7 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -274,6 +274,11 @@ namespace cmis
rUsername, rPassword, OUSTR_TO_STDSTR( m_aURL.getRepositoryId( ) ) );
m_pProvider->registerSession( sSessionId, m_pSession );
}
+ else
+ {
+ // Silently fail as the user cancelled the authentication
+ throw uno::RuntimeException( );
+ }
}
return m_pSession;
}
@@ -322,7 +327,7 @@ namespace cmis
ucb::IOErrorCode_GENERAL,
uno::Sequence< uno::Any >( 0 ),
xEnv,
- rtl::OUString::createFromAscii( e.what() ) );
+ rtl::OUString::createFromAscii( e.what( ) ) );
}
return bIsFolder;
}