From e03730b9131c934bd00fba40637b31b2c9bf483b Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Tue, 18 Nov 2014 21:35:18 +0000 Subject: [PATCH] Fix potential crash when going to the line of a large file. It will not work first time, but that's a seperate issue --- src/bin/mainview/edi_mainview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/mainview/edi_mainview.c b/src/bin/mainview/edi_mainview.c index f673bf7..4b513e5 100644 --- a/src/bin/mainview/edi_mainview.c +++ b/src/bin/mainview/edi_mainview.c @@ -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);