summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-10-20 20:35:01 -0700
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-10-31 12:03:30 +0100
commit1eb7a921641107cdd802e8bbc6117d6f303f73f5 (patch)
treea31ddb0ffa6013556fe6ab2720d10fff563495e1 /ucb
parent23722506efd84a9b7b447578de32c0eef9bf8b98 (diff)
CMIS UCP: fixed crash when URL to server is wrong, or server down
Change-Id: Ibe11358794a3ff714d2e1fafd900cc3262ca266d
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/cmis/cmis_content.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index 966576bec254..6ea78e0be528 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -272,6 +272,12 @@ namespace cmis
m_pSession = libcmis::SessionFactory::createSession(
OUSTR_TO_STDSTR( m_aURL.getBindingUrl( ) ),
rUsername, rPassword, OUSTR_TO_STDSTR( m_aURL.getRepositoryId( ) ) );
+ if ( m_pSession == NULL )
+ ucbhelper::cancelCommandExecution(
+ ucb::IOErrorCode_INVALID_DEVICE,
+ uno::Sequence< uno::Any >( 0 ),
+ xEnv,
+ rtl::OUString( ) );
m_pProvider->registerSession( sSessionId, m_pSession );
}
else