]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
WIP vala: Unresolved namespaces? wip/ricotz/lsp-rev
authorPrinceton Ferro <princetonferro@gmail.com>
Tue, 18 Feb 2020 11:20:00 +0000 (12:20 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 8 Mar 2020 18:03:55 +0000 (19:03 +0100)
vala/valagirparser.vala

index 88f874d8f4f3507d2ccdeba51e3fe3fda9875b31..cd665b32635def8c4bf6f9f0afce2ebf7b4a181a 100644 (file)
@@ -1394,6 +1394,12 @@ public class Vala.GirParser : CodeVisitor {
                                continue;
                        }
 
+                       if (ns == null) {
+                               // We should not have a null namespace unless we're in LSP mode.
+                               assert (context.keep_going);
+                               continue;
+                       }
+
                        provided_namespaces.add ("%s-%s".printf (gir_namespace, gir_version));
 
                        var gir_symbol = new UnresolvedSymbol (null, gir_namespace);