vala r2041 - in trunk: . vala



Author: juergbi
Date: Thu Nov 20 21:21:42 2008
New Revision: 2041
URL: http://svn.gnome.org/viewvc/vala?rev=2041&view=rev

Log:
2008-11-20  JÃrg Billeter  <j bitron ch>

	* vala/valacatchclause.vala:

	Fix generic catch clauses


Modified:
   trunk/ChangeLog
   trunk/vala/valacatchclause.vala

Modified: trunk/vala/valacatchclause.vala
==============================================================================
--- trunk/vala/valacatchclause.vala	(original)
+++ trunk/vala/valacatchclause.vala	Thu Nov 20 21:21:42 2008
@@ -123,6 +123,8 @@
 	}
 
 	public override void get_defined_variables (Collection<LocalVariable> collection) {
-		collection.add (error_variable);
+		if (error_variable != null) {
+			collection.add (error_variable);
+		}
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]