Kaydet (Commit) 1e26ecab authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705021 Dereference after null check

Change-Id: I95eb92cf3b6df7a25d99164b97a96fc568671d26
üst 627de422
......@@ -146,11 +146,14 @@ void SwInputWindow::CleanupUglyHackWithUndo()
{
if (m_bResetUndo)
{
DelBoxCntnt();
pWrtShell->DoUndo(m_bDoesUndo);
if (m_bCallUndo)
if (pWrtShell)
{
pWrtShell->Undo();
DelBoxCntnt();
pWrtShell->DoUndo(m_bDoesUndo);
if (m_bCallUndo)
{
pWrtShell->Undo();
}
}
m_bResetUndo = false; // #i117122# once is enough :)
}
......
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