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

Commit 56a1770

Browse files
committed
chore(input select): Add an explicit assertion.
1 parent e1745c6 commit 56a1770

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/directive/input_select.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ class _SingleSelectMode extends _SelectMode {
166166
var i = 0;
167167
model.viewValue = _forEachOption((option, _) {
168168
if (option.selected) {
169-
return option == _nullOption ? null : expando[option].ngValue;
169+
if (option == _nullOption) return null;
170+
assert(expando[option] != null);
171+
return expando[option].ngValue;
170172
}
171173
if (option != _unknownOption && option != _nullOption) i++;
172174
}, true);

0 commit comments

Comments
 (0)