]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gir-importer: skip <union> elements without ctype-attributes
authorFlorian Brosch <flo.brosch@gmail.com>
Sat, 23 Aug 2014 04:21:11 +0000 (06:21 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Fri, 29 Aug 2014 13:52:07 +0000 (15:52 +0200)
src/libvaladoc/importer/girdocumentationimporter.vala

index 45bbf09589eeb2609e3f3a584f7ffb6a2c9f90a2..e4793f82e8940c821fcc1474befc7d065716f867 100644 (file)
@@ -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 ();