summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/PostItMgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/docvw/PostItMgr.cxx')
-rw-r--r--sw/source/uibase/docvw/PostItMgr.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx
index f1b3a329f937..c636ad174353 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -1749,7 +1749,8 @@ void SwPostItMgr::Hide()
for (auto const& postItField : mvPostItFields)
{
postItField->mbShow = false;
- postItField->mpPostIt->HideNote();
+ if (postItField->mpPostIt)
+ postItField->mpPostIt->HideNote();
}
}