forked from enlightenment/enventor
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:
parent
20b99c0d48
commit
a512a80782
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue