summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2022-12-21 20:14:11 +0100
committerAndras Timar <andras.timar@collabora.com>2022-12-22 10:24:30 +0000
commitf8a20f000d0bbac0b1cd4f2bc0b74cef4677bf2e (patch)
tree304e15d5168d5c69ac880b4a3520a9bfc0545333
parent080066c616cd63c200691d167a409180382403a3 (diff)
check for null pointer
Change-Id: I106b3de160ea70520aa98ad48d5f1005de6c6be5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144714 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--editeng/source/editeng/impedit.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index a6387ba1d776..db71098c2590 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1419,7 +1419,7 @@ void ImpEditView::ShowCursor( bool bGotoCursor, bool bForceVisCursor )
EditView* pActiveView = GetEditViewPtr();
boost::property_tree::ptree aHyperlinkTree;
- if (URLFieldHelper::IsCursorAtURLField(*pActiveView))
+ if (pActiveView && URLFieldHelper::IsCursorAtURLField(*pActiveView))
{
if (const SvxFieldItem* pFld = GetField(aPos, nullptr, nullptr))
if (auto pUrlField = dynamic_cast<const SvxURLField*>(pFld->GetField()))