Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 0814631

Browse files
pavelgjmhevery
authored andcommitted
hack(scope): ignore nulls in > operator
Closes #10
1 parent 42c8d8c commit 0814631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/scope.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ _operation_remainder(left, right) => left % right;
817817
_operation_equals(left, right) => left == right;
818818
_operation_not_equals(left, right) => left != right;
819819
_operation_less_then(left, right) => left < right;
820-
_operation_greater_then(left, right) => left > right;
820+
_operation_greater_then(left, right) => (left == null || right == null) ? false : left > right;
821821
_operation_less_or_equals_then(left, right) => left <= right;
822822
_operation_greater_or_equals_then(left, right) => left >= right;
823823
_operation_power(left, right) => left ^ right;

0 commit comments

Comments
 (0)