From 7f913d96ae72c080bfa5a2d6d90e744db37b53e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrg=20Billeter?= Date: Sun, 13 Sep 2009 18:09:58 +0200 Subject: [PATCH] Fix crash with virtual async methods --- codegen/valaccodemethodmodule.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala index b38f4c14..281c44ac 100644 --- a/codegen/valaccodemethodmodule.vala +++ b/codegen/valaccodemethodmodule.vala @@ -845,7 +845,9 @@ internal class Vala.CCodeMethodModule : CCodeStructModule { public void generate_vfunc (Method m, DataType return_type, Map cparam_map, Map carg_map, string suffix = "", int direction = 3) { var vfunc = new CCodeFunction (m.get_cname () + suffix); - vfunc.line = function.line; + if (function != null) { + vfunc.line = function.line; + } var vblock = new CCodeBlock (); -- 2.11.4.GIT