From: Princeton Ferro Date: Wed, 19 Feb 2020 13:43:00 +0000 (+0100) Subject: vala: Method representing a LambdaExpression might be null on an error X-Git-Tag: 0.47.92~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4c823038051196e4fe571c694305a72057108d2;p=thirdparty%2Fvala.git vala: Method representing a LambdaExpression might be null on an error This caused criticals like: vala_method_get_closure: assertion 'self != NULL' failed --- diff --git a/vala/valalambdaexpression.vala b/vala/valalambdaexpression.vala index 4fb7f4564..314bfa7ce 100644 --- a/vala/valalambdaexpression.vala +++ b/vala/valalambdaexpression.vala @@ -249,7 +249,7 @@ public class Vala.LambdaExpression : Expression { public override void get_used_variables (Collection collection) { // require captured variables to be initialized - if (method.closure) { + if (method != null && method.closure) { method.get_captured_variables ((Collection) collection); } }