Kaydet (Commit) d45feee6 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

CMIS UCP: fixed crash when cancelling authentication dialog

Change-Id: Ic7d8382df31e7489497a6bdb14bfa8c6317f11f4
üst c767f824
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment