From: Florian Brosch Date: Sat, 23 Aug 2014 04:21:11 +0000 (+0200) Subject: gir-importer: skip elements without ctype-attributes X-Git-Tag: 0.37.1~3^2~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89ecb6a91b5bfbe7d1fbf7703b09519079bd6a33;p=thirdparty%2Fvala.git gir-importer: skip elements without ctype-attributes --- diff --git a/src/libvaladoc/importer/girdocumentationimporter.vala b/src/libvaladoc/importer/girdocumentationimporter.vala index 45bbf0958..e4793f82e 100644 --- a/src/libvaladoc/importer/girdocumentationimporter.vala +++ b/src/libvaladoc/importer/girdocumentationimporter.vala @@ -812,6 +812,10 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter { private void parse_union () { start_element ("union"); this.parent_c_identifier = reader.get_attribute ("c:type"); + if (this.parent_c_identifier == null) { + skip_element (); + return ; + } next (); Api.GirSourceComment? comment = parse_symbol_doc ();