Kaydet (Commit) 2fc13fef authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1399020 Dereference after null check

Change-Id: Ic4a2eb0425cd48de85a40350c7368ade486842c2
üst 359e6881
......@@ -303,12 +303,12 @@ bool SwPaM::Find( const SearchOptions2& rSearchOpt, bool bSearchInNotes , utl::T
}
SwDocShell *const pDocShell = pNode->GetDoc()->GetDocShell();
SwWrtShell *const pWrtShell = (pDocShell) ? pDocShell->GetWrtShell() : nullptr;
SwPostItMgr *const pPostItMgr = (pWrtShell) ? pWrtShell->GetPostItMgr() : nullptr;
SwWrtShell *const pWrtShell = pDocShell ? pDocShell->GetWrtShell() : nullptr;
SwPostItMgr *const pPostItMgr = pWrtShell ? pWrtShell->GetPostItMgr() : nullptr;
// If there is an active text edit, then search there.
bool bEndedTextEdit = false;
SdrView* pSdrView = pWrtShell->GetDrawView();
SdrView* pSdrView = pWrtShell ? pWrtShell->GetDrawView() : nullptr;
if (pSdrView)
{
// If the edited object is not anchored to this node, then ignore it.
......
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