Commit 506e8087 authored by Sébastien Lafargue's avatar Sébastien Lafargue
Browse files

xml-pack: prevent for analysing null size files

parent 3ae3e447
......@@ -516,7 +516,7 @@ ide_xml_tree_builder_build_tree_async (IdeXmlTreeBuilder *self,
content = ide_xml_tree_builder_get_file_content (self, file, &sequence);
if (content == NULL)
if (content == NULL || g_bytes_get_size (content) == 0)
g_task_return_new_error (task,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment