editeng/source/editeng/impedit.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 17a8cb1573c5b75e5b7a6c480e09c681edcc26c0
Author:     Andras Timar <andras.ti...@collabora.com>
AuthorDate: Wed Dec 21 20:14:11 2022 +0100
Commit:     Eike Rathke <er...@redhat.com>
CommitDate: Thu Dec 22 00:56:50 2022 +0000

    check for null pointer
    
    Change-Id: I106b3de160ea70520aa98ad48d5f1005de6c6be5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144700
    Tested-by: Jenkins
    Reviewed-by: Eike Rathke <er...@redhat.com>

diff --git a/editeng/source/editeng/impedit.cxx 
b/editeng/source/editeng/impedit.cxx
index 1223d717f5e5..7d378af4da14 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()))

Reply via email to