vala r908 - in trunk: . vala



Author: juergbi
Date: Sat Jan 26 10:34:24 2008
New Revision: 908
URL: http://svn.gnome.org/viewvc/vala?rev=908&view=rev

Log:
2008-01-26  Juerg Billeter  <j bitron ch>

	* vala/valasemanticanalyzer.vala: fix crash with invalid invocation
	  expressions, fixes bug 511823


Modified:
   trunk/ChangeLog
   trunk/vala/valasemanticanalyzer.vala

Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala	(original)
+++ trunk/vala/valasemanticanalyzer.vala	Sat Jan 26 10:34:24 2008
@@ -1506,15 +1506,9 @@
 
 		var mtype = expr.call.static_type;
 
-		if (mtype == null) {
-			/* if no type found, skip this check */
-			expr.error = true;
-			return;
-		}
-
 		Collection<FormalParameter> params;
 
-		if (mtype.is_invokable ()) {
+		if (mtype != null && mtype.is_invokable ()) {
 			params = mtype.get_parameters ();
 		} else {
 			expr.error = true;



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