Commit b3a3fa6f authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

fix null pointer dereference when emitting signals

2007-03-16  Jürg Billeter  <j@bitron.ch>

	* vala/valacodegenerator.vala: fix null pointer dereference when
	  emitting signals

svn path=/trunk/; revision=236
parent e579dad9
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
......
......@@ -3211,7 +3211,7 @@ public class Vala.CodeGenerator : CodeVisitor {
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 ()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment