vala r923 - in trunk: . vala



Author: juergbi
Date: Tue Jan 29 14:37:19 2008
New Revision: 923
URL: http://svn.gnome.org/viewvc/vala?rev=923&view=rev

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

	* vala/valadatatype.vala: fix crash on invalid code, fixes bug 512306


Modified:
   trunk/ChangeLog
   trunk/vala/valadatatype.vala

Modified: trunk/vala/valadatatype.vala
==============================================================================
--- trunk/vala/valadatatype.vala	(original)
+++ trunk/vala/valadatatype.vala	Tue Jan 29 14:37:19 2008
@@ -389,7 +389,7 @@
 			}
 		}
 
-		return data_type.is_subtype_of (target_type.data_type);
+		return (data_type != null && target_type.data_type != null && data_type.is_subtype_of (target_type.data_type));
 	}
 
 	/**



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