<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - CRASH: creating new document while navigator is displayed"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=141511">bug 141511</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>serval2412@yahoo.fr
</td>
</tr>
<tr>
<td style="text-align:right;">Keywords</td>
<td>
</td>
<td>haveBacktrace
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - CRASH: creating new document while navigator is displayed"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=141511#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - CRASH: creating new document while navigator is displayed"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=141511">bug 141511</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>On pc Debian x86-64 with master sources updated today, I could reproduce this.
Here's part of bt:
#0 sd::DrawViewShell::GetEditMode() const (this=0x0) at
sd/source/ui/inc/DrawViewShell.hxx:237
#1 0x00007ff69472f9c3 in SdNavigatorControllerItem::StateChanged(unsigned
short, SfxItemState, SfxPoolItem const*) (this=0x8374d20, nSId=27288,
eState=SfxItemState::DEFAULT, pItem=0x83da790)
at sd/source/ui/dlg/navigatr.cxx:642
#2 0x00007ff6accafea0 in SfxStateCache::SetState_Impl(SfxItemState,
SfxPoolItem const*, bool) (this=0x8345a00, eState=SfxItemState::DEFAULT,
pState=0x83da790, bMaybeDirty=false)
at sfx2/source/control/statcach.cxx:423
#3 0x00007ff6accafbd1 in SfxStateCache::SetState(SfxItemState, SfxPoolItem
const*, bool) (this=0x8345a00, eState=SfxItemState::DEFAULT, pState=0x83da790,
bMaybeDirty=false)
at sfx2/source/control/statcach.cxx:324
#4 0x00007ff6acc1aaaa in
SfxBindings::UpdateControllers_Impl(SfxFoundCache_Impl const&, SfxPoolItem
const*, SfxItemState) (rFound=..., pItem=0x83da790, eState=SfxItemState::SET)
at sfx2/source/control/bindings.cxx:1218
=> naive patch:
diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
index c0e2ec79992e..b09edffc46b2 100644
--- a/sd/source/ui/dlg/navigatr.cxx
+++ b/sd/source/ui/dlg/navigatr.cxx
@@ -639,7 +639,7 @@ void SdNavigatorControllerItem::StateChanged( sal_uInt16
nSId,
{
const auto pDrawViewShell =
static_cast<::sd::DrawViewShell
*>(pDrawDocShell->GetViewShell());
- bool bEditModePage(pDrawViewShell->GetEditMode() == EditMode::Page);
+ bool bEditModePage(pDrawViewShell && (pDrawViewShell->GetEditMode() ==
EditMode::Page));
pNavigatorWin->mxToolbox->set_sensitive(bEditModePage);
pNavigatorWin->mxLbDocs->set_sensitive(bEditModePage);
pNavigatorWin->mxTlbObjects->set_sensitive(bEditModePage);</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>