-
Notifications
You must be signed in to change notification settings - Fork 28
type 'Null' is not a subtype of type 'Function' #30
Copy link
Copy link
Open
Description
expressions/lib/src/evaluator.dart
Line 118 in 4f9dcb2
| var callee = eval(expression.callee, context); |
add a null check here.
if value of callee evaluates to null then it throws an exception stating type 'Null' is not a subtype of type 'Function'
as of now i've handled it in our project by explicitly checking callee value in this way
final callee = eval(expression.callee, context);
if (callee == null) {
return;
}
return evalCallExpression(expression, context);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels