]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix crash introduced by previous patch.
authorLuca Bruno <lucabru@src.gnome.org>
Fri, 10 May 2013 19:53:33 +0000 (21:53 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Fri, 10 May 2013 19:53:33 +0000 (21:53 +0200)
codegen/valaccodemethodcallmodule.vala

index 6bc87cb841a5cf9bb675c2755c2e58939e687028..b30422a508b061983a43067118015867e26d34db 100644 (file)
@@ -714,7 +714,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
                        }
                }
 
-               if (get_ccode_type (m) != null && get_ccode_type (m) != get_ccode_name (m.return_type)) {
+               if (m != null && get_ccode_type (m) != null && get_ccode_type (m) != get_ccode_name (m.return_type)) {
                        // Bug 699956: Implement cast for method return type if [CCode type=] annotation is specified
                        ccall_expr = new CCodeCastExpression (ccall_expr, get_ccode_name (m.return_type));
                }