https://bugs.documentfoundation.org/show_bug.cgi?id=98787

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |haveBacktrace, regression
           Priority|medium                      |high
             Status|UNCONFIRMED                 |NEW
                 CC|                            |[email protected]
     Ever confirmed|0                           |1
           Severity|normal                      |major

--- Comment #2 from Julien Nabet <[email protected]> ---
On pc Debian x86-64 with master sources updated today, I could reproduce this.

This straightforward patch avoids the crash but as often, perhaps I just
hide/workaround the real problem:
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 9ff9992..a492d9c 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -208,7 +208,11 @@ void SwModule::StateOther(SfxItemSet &rSet)
             case FN_MAILMERGE_LAST_ENTRY:
             {
                 SwView* pView = ::GetActiveView();
-                SwMailMergeConfigItem* pConfigItem =
pView->GetMailMergeConfigItem();
+                SwMailMergeConfigItem* pConfigItem = nullptr;
+                if (pView)
+                {
+                    pConfigItem = pView->GetMailMergeConfigItem();
+                }
                 if (!pConfigItem)
                     rSet.DisableItem(nWhich);
                 else

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to