Fix potential crash when going to the line of a

large file.

It will not work first time, but that's a seperate issue
This commit is contained in:
Andy Williams 2014-11-18 21:35:18 +00:00
parent a82431c627
commit e03730b913
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ edi_mainview_goto(int line)
it = elm_naviframe_top_item_get(nf);
content = elm_object_item_content_get(it);
editor = (Edi_Editor *)evas_object_data_get(content, "editor");
if (!content || line <= 0)
if (!content || !editor || line <= 0)
return;
_tb = elm_entry_textblock_get(editor->entry);