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

Henry Castro (via logerrit) logerrit at kemper.freedesktop.org
Mon Mar 29 17:07:58 UTC 2021


 sfx2/source/sidebar/SidebarController.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 949085b12a8a57b2257f4e59cc597e4c59b42f76
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Mon Mar 29 09:18:07 2021 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Mon Mar 29 19:07:19 2021 +0200

    lok: fix nullptr de-reference
    
    Change-Id: I8a9a7444d66e5e6449a0215bde174253a41f09b3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113317
    Tested-by: Jenkins
    Reviewed-by: Henry Castro <hcastro at collabora.com>

diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 3fdd1b2339dd..56622cbb2691 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -233,7 +233,8 @@ void SidebarController::disposeDecks()
                                                        (hide + "=false").c_str());
         }
 
-        mpParentWindow->ReleaseLOKNotifier();
+        if (mpParentWindow)
+            mpParentWindow->ReleaseLOKNotifier();
     }
 
     mpCurrentDeck.clear();


More information about the Libreoffice-commits mailing list