2007-03-16 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: fix null pointer dereference when
emitting signals
svn path=/trunk/; revision=236
+2007-03-16 Jürg Billeter <j@bitron.ch>
+
+ * vala/valacodegenerator.vala: fix null pointer dereference when
+ emitting signals
+
2007-03-16 Jürg Billeter <j@bitron.ch>
* vala/parser.y: default to strong references for method return types
expr.ccodenode = new CCodeAssignment (instance, ccall);
} else {
/* cast pointer to actual type if this is a generic method return value */
- if (m.return_type.type_parameter != null && expr.static_type.data_type != null) {
+ if (m != null && m.return_type.type_parameter != null && expr.static_type.data_type != null) {
if (expr.static_type.data_type is Struct) {
var st = (Struct) expr.static_type.data_type;
if (st == bool_type.data_type || st.is_integer_type ()) {