basctl/source/basicide/ObjectCatalog.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit aa29d9f8b141cbb513769dd8b14435f9164a5654
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Mon Nov 21 22:43:04 2022 +0100
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Nov 22 05:41:36 2022 +0100

    tdf#152154: Crash when Object Catalog undocked and BASIC IDE closed
    
    Change-Id: Ice01e253c135cf1c694afad092aabe46b3150e2b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143078
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/basctl/source/basicide/ObjectCatalog.cxx 
b/basctl/source/basicide/ObjectCatalog.cxx
index 89b3f4e2b824..13069ed46621 100644
--- a/basctl/source/basicide/ObjectCatalog.cxx
+++ b/basctl/source/basicide/ObjectCatalog.cxx
@@ -67,7 +67,9 @@ void ObjectCatalog::ToggleFloatingMode()
     DockingWindow::ToggleFloatingMode();
 
     bool const bFloating = IsFloatingMode();
-    m_xTitle->set_visible(!bFloating);
+    // tdf#152154: m_xTitle will be null during disposing
+    if (m_xTitle)
+        m_xTitle->set_visible(!bFloating);
 }
 
 void ObjectCatalog::SetCurrentEntry(BaseWindow* pCurWin)

Reply via email to