Kaydet (Commit) 5bd3a42b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1078822 Dereference before null check

Change-Id: I6cc2ed1777a797c74b4a6d9618af6a62ad5ff247
üst a831e56c
......@@ -422,6 +422,8 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt)
StartCursorMove();
bool autoClose = false;
if (!pEditView)
CreateEditView();
ESelection aSelection = pEditView->GetSelection();
// as we don't support RTL in Math, we need to swap values from selection when they were done
// in RTL form
......@@ -459,8 +461,6 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt)
autoClose = true;
}
if (!pEditView)
CreateEditView();
if ( !pEditView->PostKeyEvent(rKEvt) )
{
SmViewShell *pView = GetView();
......
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