From e03127dee25df024db5b1b7b34807f8a45199cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Wed, 7 Jan 2009 22:34:15 +0000 Subject: Fix critical when using invalid `using' directive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2009-01-07 Jürg Billeter * vala/valasymbolresolver.vala: Fix critical when using invalid `using' directive svn path=/trunk/; revision=2289 --- vala/valasymbolresolver.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vala/valasymbolresolver.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; } -- cgit v1.2.1