Permalink
Browse files

Fix potential null pointer de-reference spotted by Coverity.

  • Loading branch information...
1 parent 812fcf7 commit b989db66ce8382c654306277d480e8fdfec58dd2 @stuartm stuartm committed May 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythui/mythuitextedit.cpp
@@ -155,7 +155,7 @@ void MythUITextEdit::Finalize()
m_Text->SetText("");
}
- if (m_cursorImage)
+ if (m_cursorImage && m_Text)
m_cursorImage->SetPosition(m_Text->CursorPosition(0));
}

0 comments on commit b989db6

Please sign in to comment.