[Libreoffice-commits] core.git: desktop/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Oct 29 19:57:43 UTC 2019


 desktop/source/deployment/gui/dp_gui_theextmgr.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 3ca92aee38c98ba6e0a21d8531321ca2f0ab6968
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Oct 29 15:43:34 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Oct 29 20:56:31 2019 +0100

    Resolves: tdf#127645 fix crash on revisit to check updates
    
    Change-Id: I64474d014754e6a58aa8a9b037c336997c44daf2
    Reviewed-on: https://gerrit.libreoffice.org/81693
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/desktop/source/deployment/gui/dp_gui_theextmgr.cxx b/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
index 9498f6fec7a9..54bd5e4b5d9e 100644
--- a/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
+++ b/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
@@ -196,13 +196,12 @@ sal_Int16 TheExtensionManager::execute()
     return nRet;
 }
 
-
 bool TheExtensionManager::isVisible()
 {
-    return getDialog()->get_visible();
+    weld::Window* pDialog = getDialog();
+    return pDialog && pDialog->get_visible();
 }
 
-
 void TheExtensionManager::checkUpdates()
 {
     std::vector< uno::Reference< deployment::XPackage >  > vEntries;


More information about the Libreoffice-commits mailing list