]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix critical when using invalid `using' directive
authorJürg Billeter <j@bitron.ch>
Wed, 7 Jan 2009 22:34:15 +0000 (22:34 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Wed, 7 Jan 2009 22:34:15 +0000 (22:34 +0000)
2009-01-07  Jürg Billeter  <j@bitron.ch>

* vala/valasymbolresolver.vala:

Fix critical when using invalid `using' directive

svn path=/trunk/; revision=2289

ChangeLog
vala/valasymbolresolver.vala

index a799f37b0c41005e310a67c8335e53c58d625ddd..f4d1dc4945914dc5d58d2d431561880026201663 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-07  Jürg Billeter  <j@bitron.ch>
+
+       * vala/valasymbolresolver.vala:
+
+       Fix critical when using invalid `using' directive
+
 2009-01-07  Jürg Billeter  <j@bitron.ch>
 
        * gobject/valagerrormodule.vala:
index be43079f2dae1eb04521dc02c742fd5e73399ba2..7e189e5aac498a559ee7f18aadb5070fd496a230 100644 (file)
@@ -1,6 +1,7 @@
 /* valasymbolresolver.vala
  *
- * Copyright (C) 2006-2009  Jürg Billeter, Raffaele Sandrini
+ * Copyright (C) 2006-2009  Jürg Billeter
+ * Copyright (C) 2006-2008  Raffaele Sandrini
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -210,7 +211,7 @@ public class Vala.SymbolResolver : CodeVisitor {
                        }
                        if (sym == null) {
                                foreach (UsingDirective ns in current_using_directives) {
-                                       if (ns.error) {
+                                       if (ns.error || ns.namespace_symbol is UnresolvedSymbol) {
                                                continue;
                                        }