Return-Path: X-Original-To: apmail-openoffice-commits-archive@www.apache.org Delivered-To: apmail-openoffice-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C60610255 for ; Fri, 9 Aug 2013 15:03:46 +0000 (UTC) Received: (qmail 75670 invoked by uid 500); 9 Aug 2013 15:03:46 -0000 Delivered-To: apmail-openoffice-commits-archive@openoffice.apache.org Received: (qmail 75541 invoked by uid 500); 9 Aug 2013 15:03:41 -0000 Mailing-List: contact commits-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openoffice.apache.org Delivered-To: mailing list commits@openoffice.apache.org Received: (qmail 75534 invoked by uid 99); 9 Aug 2013 15:03:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 15:03:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 15:03:39 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1F7E6238889B; Fri, 9 Aug 2013 15:03:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1512330 - /openoffice/trunk/main/cui/source/options/optupdt.cxx Date: Fri, 09 Aug 2013 15:03:19 -0000 To: commits@openoffice.apache.org From: hdu@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130809150319.1F7E6238889B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hdu Date: Fri Aug 9 15:03:18 2013 New Revision: 1512330 URL: http://svn.apache.org/r1512330 Log: #i122818# fix crash in online-update-check when no application is active Closing all application windows and retaining access to the application menu is only possible on MacOSX. The DispatchProvider used for the update check seems to depend on having an active application window. Maybe it is possible to get the update check working without it but this patch doesn't attempt that, it prevent further escalation such as crashes. Fixed by: Herbert Duerr Debugged by: Oliver-Rainer Wittmann, Herbert Duerr Found by: Frantisek Erben Modified: openoffice/trunk/main/cui/source/options/optupdt.cxx Modified: openoffice/trunk/main/cui/source/options/optupdt.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/cui/source/options/optupdt.cxx?rev=1512330&r1=1512329&r2=1512330&view=diff ============================================================================== --- openoffice/trunk/main/cui/source/options/optupdt.cxx (original) +++ openoffice/trunk/main/cui/source/options/optupdt.cxx Fri Aug 9 15:03:18 2013 @@ -371,13 +371,14 @@ IMPL_LINK( SvxOnlineUpdateTabPage, Check uno::Reference< frame::XDispatchProvider > xDispatchProvider( xDesktop->getCurrentFrame(), uno::UNO_QUERY ); - uno::Reference< frame::XDispatch > xDispatch = xDispatchProvider->queryDispatch(aURL, rtl::OUString(), 0); + uno::Reference< frame::XDispatch > xDispatch; + if( xDispatchProvider.is() ) + xDispatch = xDispatchProvider->queryDispatch(aURL, rtl::OUString(), 0); if( xDispatch.is() ) - { xDispatch->dispatch(aURL, uno::Sequence< beans::PropertyValue > ()); - UpdateLastCheckedText(); - } + + UpdateLastCheckedText(); } catch( const uno::Exception& e ) {