Kaydet (Commit) 3ece9b4e authored tarafından Markus Mohrhard's avatar Markus Mohrhard

coverity#1000602: fix check for null pointer

Change-Id: Iaa48ebe1799960532483812e54aa08c625882388
üst 0b052272
...@@ -760,7 +760,7 @@ bool ScViewFunc::HasBookmarkAtCursor( SvxHyperlinkItem* pContent ) ...@@ -760,7 +760,7 @@ bool ScViewFunc::HasBookmarkAtCursor( SvxHyperlinkItem* pContent )
ScDocument* pDoc = GetViewData()->GetDocShell()->GetDocument(); ScDocument* pDoc = GetViewData()->GetDocShell()->GetDocument();
const EditTextObject* pData = pDoc->GetEditText(aPos); const EditTextObject* pData = pDoc->GetEditText(aPos);
if (pData) if (!pData)
return false; return false;
if (!pData->IsFieldObject()) if (!pData->IsFieldObject())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment