https://bugs.documentfoundation.org/show_bug.cgi?id=158323
--- Comment #4 from Julien Nabet <[email protected]> --- I don't know if it's expected that GetStyleSheetPool may return null. If it is, this patch can fix this: diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index 12c5e4f52d11..c69402c8583e 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -225,7 +225,9 @@ SwPostItMgr::SwPostItMgr(SwView* pView) StartListening(*mpView->GetDocShell()); // listen to stylesheet pool to update on stylesheet rename, // as EditTextObject references styles by name. - StartListening(*static_cast<SwDocStyleSheetPool*>(mpView->GetDocShell()->GetStyleSheetPool())->GetEEStyleSheetPool()); + SfxStyleSheetBasePool* pPool = mpView->GetDocShell()->GetStyleSheetPool(); + if (pPool) + StartListening(*static_cast<SwDocStyleSheetPool*>(pPool)->GetEEStyleSheetPool()); if (!mvPostItFields.empty()) { mbWaitingForCalcRects = true; -- You are receiving this mail because: You are the assignee for the bug.
