[vala/staging] vala: Method representing a LambdaExpression might be null on an error
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Method representing a LambdaExpression might be null on an error
- Date: Wed, 19 Feb 2020 14:18:35 +0000 (UTC)
commit e4c823038051196e4fe571c694305a72057108d2
Author: Princeton Ferro <princetonferro gmail com>
Date: Wed Feb 19 14:43:00 2020 +0100
vala: Method representing a LambdaExpression might be null on an error
This caused criticals like:
vala_method_get_closure: assertion 'self != NULL' failed
vala/valalambdaexpression.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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<Variable> collection) {
// require captured variables to be initialized
- if (method.closure) {
+ if (method != null && method.closure) {
method.get_captured_variables ((Collection<LocalVariable>) collection);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]