vala r832 - in trunk: . vala



Author: juergbi
Date: Sat Jan 12 12:35:30 2008
New Revision: 832
URL: http://svn.gnome.org/viewvc/vala?rev=832&view=rev

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

	* vala/valasemanticanalyzer.vala: fix null dereference when trying to
	  access members of a delegate


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

Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala	(original)
+++ trunk/vala/valasemanticanalyzer.vala	Sat Jan 12 12:35:30 2008
@@ -1336,7 +1336,9 @@
 					expr.symbol_reference = expr.inner.static_type.get_pointer_member (expr.member_name);
 				} else {
 					base_symbol = expr.inner.static_type.data_type;
-					expr.symbol_reference = symbol_lookup_inherited (base_symbol, expr.member_name);
+					if (base_symbol != null) {
+						expr.symbol_reference = symbol_lookup_inherited (base_symbol, expr.member_name);
+					}
 				}
 				if (expr.symbol_reference != null) {
 					// inner expression is variable, field, or parameter



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