avoid possible null deref

SVN revision: 56097
This commit is contained in:
Mike Blumenkrantz 2011-01-14 06:27:10 +00:00
parent 14ff070f5c
commit 447d2c91dc
1 changed files with 1 additions and 1 deletions

View File

@ -5955,7 +5955,7 @@ evas_textblock_cursor_format_append(Evas_Textblock_Cursor *cur, const char *form
cur->node->format_node = n;
}
}
if (is_visible)
if (is_visible && cur->node)
{
eina_ustrbuf_insert_char(cur->node->unicode,
EVAS_TEXTBLOCK_REPLACEMENT_CHAR, cur->pos);