edc_editor: add null checking in error_line_num_highlight function

Summary:
in error_line_num_highlight, utf8 can be null.
so, I added null checking about it.

@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3764
This commit is contained in:
taehyub 2016-03-04 23:39:14 +09:00 committed by Hermet Park
parent 20b99c0d48
commit a512a80782
1 changed files with 3 additions and 0 deletions

View File

@ -1696,6 +1696,9 @@ error_line_num_highlight(edit_data *ed)
char *utf8 = (char *)color_cancel(syntax_color_data_get(ed->sh), text,
strlen(text), from_line, to_line, &from,
&to);
if (!utf8) return;
if (ed->error_line == -1)
{
evas_object_textblock_text_markup_set(tb, utf8);