From: Jürg Billeter Date: Wed, 7 Jan 2009 22:34:15 +0000 (+0000) Subject: Fix critical when using invalid `using' directive X-Git-Tag: VALA_0_5_4~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e03127dee25df024db5b1b7b34807f8a45199cc1;p=thirdparty%2Fvala.git Fix critical when using invalid `using' directive 2009-01-07 Jürg Billeter * vala/valasymbolresolver.vala: Fix critical when using invalid `using' directive svn path=/trunk/; revision=2289 --- diff --git a/ChangeLog b/ChangeLog index a799f37b0..f4d1dc494 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-07 Jürg Billeter + + * vala/valasymbolresolver.vala: + + Fix critical when using invalid `using' directive + 2009-01-07 Jürg Billeter * gobject/valagerrormodule.vala: 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; }