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

Commit ff842e1

Browse files
committed
fix(binder): adds a null check for null mappings.
1 parent 2c4de02 commit ff842e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/core_dom/element_binder_builder.dart

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ class ElementBinderBuilder {
9292

9393
if (annotation.map != null) {
9494
annotation.map.forEach((attrName, mapping) {
95+
if (mapping == null) {
96+
throw "Null mapping value for '${attrName}' on annotation with selector '${annotation.selector}'.";
97+
}
9598
Match match = _MAPPING.firstMatch(mapping);
9699
if (match == null) {
97100
throw "Unknown mapping '$mapping' for attribute '$attrName'.";

0 commit comments

Comments
 (0)