summaryrefslogtreecommitdiff
path: root/vala/valasymbolresolver.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-01-07 22:34:15 +0000
committerJürg Billeter <juergbi@src.gnome.org>2009-01-07 22:34:15 +0000
commite03127dee25df024db5b1b7b34807f8a45199cc1 (patch)
tree57e12b87fba882d235bbf769e02b10484dc91503 /vala/valasymbolresolver.vala
parent6f9e1b44e3b5561fd9abcf03549a3be9dc16e37f (diff)
downloadvala-e03127dee25df024db5b1b7b34807f8a45199cc1.tar.gz
Fix critical when using invalid `using' directive
2009-01-07 Jürg Billeter <j@bitron.ch> * vala/valasymbolresolver.vala: Fix critical when using invalid `using' directive svn path=/trunk/; revision=2289
Diffstat (limited to 'vala/valasymbolresolver.vala')
-rw-r--r--vala/valasymbolresolver.vala5
1 files changed, 3 insertions, 2 deletions
diff --git a/vala/valasymbolresolver.vala b/vala/valasymbolresolver.vala
index be43079f2..7e189e5aa 100644
--- a/vala/valasymbolresolver.vala
+++ b/vala/valasymbolresolver.vala
@@ -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;
}