sfx2/source/notebookbar/SfxNotebookBar.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0c40afc09fb23a4758cf4a5fdedd426a2bef262a
Author:     Caolán McNamara <[email protected]>
AuthorDate: Wed Nov 26 08:46:59 2025 +0000
Commit:     Miklos Vajna <[email protected]>
CommitDate: Thu Nov 27 12:34:09 2025 +0100

    avoid terminate after unhandled exception
    
     #3  0x00007e29f0a42476 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/posix/raise.c:26
     #4  0x00007e29f0a287f3 in __GI_abort () at ./stdlib/abort.c:79
     #5  0x00007e29f0ea2b9e in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
     #6  0x00007e29f0eae20c in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
     #7  0x00007e29f0eae277 in std::terminate() () from 
/lib/x86_64-linux-gnu/libstdc++.so.6
     #8  0x00007e29f0eae4d8 in __cxa_throw () from 
/lib/x86_64-linux-gnu/libstdc++.so.6
     #9  0x00007e29ead812a5 in SfxBaseModel::MethodEntryCheck (this=<optimized 
out>, i_mustBeInitialized=<optimized out>)
         at sfx2/source/doc/sfxbasemodel.cxx:3069
     #10 0x00007e29eca6d629 in SfxModelGuard::SfxModelGuard 
(i_eState=SfxModelGuard::E_FULLY_ALIVE, i_rModel=..., this=0x7ffc94a61ec0)
         at sfx2/source/inc/docundomanager.hxx:76
     #11 SfxBaseModel::getIdentifier (this=0x27ad5ab0)
         at sfx2/source/doc/sfxbasemodel.cxx:4015
     #12 0x00007e29ec098e03 in (anonymous 
namespace)::ModuleManager::implts_identify (this=0x328c9cc0, xComponent=...)
         at framework/source/services/modulemanager.cxx:327
     #13 0x00007e29ec0991f3 in (anonymous namespace)::ModuleManager::identify 
(this=0x328c9cc0, xModule=...)
         at framework/source/services/modulemanager.cxx:191
     #14 0x00007e29ecaa8e0e in sfx2::SfxNotebookBar::IsActive 
(bConsiderSingleToolbar=<optimized out>)
         at sfx2/source/notebookbar/SfxNotebookBar.cxx:324
     #15 0x00007e29ecaa95ab in sfx2::SfxNotebookBar::StateMethod 
(pSysWindow=0x36778bf0, xFrame=..., rUIFile=...,
         bReloadNotebookbar=<optimized out>)
         at sfx2/source/notebookbar/SfxNotebookBar.cxx:444
     #16 0x00007e29dd85707b in sd::DrawDocShell::GetState (this=0x367c3290, 
rSet=...)
         at sd/source/ui/docshell/docshell.cxx:327
     #17 0x00007e29ec8b67fe in SfxShell::GetSlotState (this=0x367c3290, 
nSlotId=nSlotId@entry=10338, pIF=<optimized out>,
        pIF@entry=0x0, pStateSet=pStateSet@entry=0x0)
    
    Change-Id: I13918818c04138848020ab8bdb646b0cb08f130a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194549
    Reviewed-by: Michael Stahl <[email protected]>
    Code-Style: Caolán McNamara <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>
    (cherry picked from commit adadeaf98114ffdf9893e6c92a630f7e90597f62)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194682
    Code-Style: Miklos Vajna <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>
    Tested-by: Miklos Vajna <[email protected]>

diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx 
b/sfx2/source/notebookbar/SfxNotebookBar.cxx
index 2630cbc01eae..ad6152fa97da 100644
--- a/sfx2/source/notebookbar/SfxNotebookBar.cxx
+++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx
@@ -323,7 +323,7 @@ bool SfxNotebookBar::IsActive(bool bConsiderSingleToolbar)
         {
             eApp = 
vcl::EnumContext::GetApplicationEnum(xModuleManager->identify(xFrame));
         }
-        catch (css::frame::UnknownModuleException& e)
+        catch (css::uno::Exception& e)
         {
             SAL_WARN("sfx.appl", "SfxNotebookBar::IsActive(): " + e.Message);
             return false;

Reply via email to