diff options
-rw-r--r-- | src/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c index 8585f4062..7c2cf4409 100644 --- a/src/html.c +++ b/src/html.c @@ -371,7 +371,7 @@ add_html_node (struct worker_task *task, memory_pool_t *pool, struct mime_text_p return -1; } data = new->data; - if ((data->tag->id == Tag_A || data->tag->id == Tag_IMG) && ((data->flags & FL_CLOSING) == 0)) { + if (data->tag && (data->tag->id == Tag_A || data->tag->id == Tag_IMG) && ((data->flags & FL_CLOSING) == 0)) { parse_tag_url (task, part, data->tag->id, tag_text); } if (data->flags & FL_CLOSING) { |