From a9bd6017dba0f464b948f56202145179c09d8e01 Mon Sep 17 00:00:00 2001 From: Dhruvin Date: Thu, 20 Oct 2022 00:01:44 +0530 Subject: [PATCH] fix:evalConditionValue --- lib/src/Evaluator/condition_evaluator.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/Evaluator/condition_evaluator.dart b/lib/src/Evaluator/condition_evaluator.dart index 0e9bf68..950cc82 100644 --- a/lib/src/Evaluator/condition_evaluator.dart +++ b/lib/src/Evaluator/condition_evaluator.dart @@ -203,6 +203,11 @@ class GBConditionEvaluator { return conditionValue == attributeValue; } + // Evaluate to false if attributeValue is null. + if (conditionValue.isPrimitive && attributeValue == null) { + return false; + } + // If conditionValue is array, return true if it's "equal" - "equal" should // do a deep comparison for arrays. if (conditionValue is List) {