summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-06-05 13:03:22 +0100
committerPetr Mladek <pmladek@suse.cz>2013-06-12 22:54:44 +0200
commit2b834b5b0b1f7e0c0043ea70c9ea1ec43e77bf53 (patch)
tree05c0356a127a515b4ad1265319dbbb4cb3d15d86 /extensions
parent3ad1d411f658b0c2bc8e318aebb999ab75675327 (diff)
fdo#64962 - ignore exceptions from checking with the update service.
Change-Id: If627b303f8710b915dcbdcb899454631f607e217 Reviewed-on: https://gerrit.libreoffice.org/4164 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/update/check/updatecheckjob.cxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/extensions/source/update/check/updatecheckjob.cxx b/extensions/source/update/check/updatecheckjob.cxx
index 2360daf7c722..3593a38f9935 100644
--- a/extensions/source/update/check/updatecheckjob.cxx
+++ b/extensions/source/update/check/updatecheckjob.cxx
@@ -133,11 +133,17 @@ void SAL_CALL InitUpdateCheckJobThread::run()
return;
}
- rtl::Reference< UpdateCheck > aController( UpdateCheck::get() );
- aController->initialize( m_xParameters, m_xContext );
-
- if ( m_bShowDialog )
- aController->showDialog( true );
+ try {
+ rtl::Reference< UpdateCheck > aController( UpdateCheck::get() );
+ aController->initialize( m_xParameters, m_xContext );
+
+ if ( m_bShowDialog )
+ aController->showDialog( true );
+ } catch (const uno::Exception &e) {
+ // fdo#64962 - don't bring the app down on some unexpected exception.
+ OSL_TRACE( "Caught init update exception: %s\n thread terminated.\n",
+ OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr() );
+ }
}
void InitUpdateCheckJobThread::setTerminating() {