Index: lib/runtime/_classes.js |
diff --git a/lib/runtime/_classes.js b/lib/runtime/_classes.js |
index 11205d632cf48a91514bacabc35284bea142ca41..a57c30dde09e3074aa86de13289ce9f027068bc6 100644 |
--- a/lib/runtime/_classes.js |
+++ b/lib/runtime/_classes.js |
@@ -382,7 +382,7 @@ dart_library.library('dart_runtime/_classes', null, /* Imports */[ |
exports.defineExtensionMembers = defineExtensionMembers; |
function canonicalMember(obj, name) { |
- if (obj[_extensionType]) return dartx[name]; |
+ if (obj != null && obj[_extensionType]) return dartx[name]; |
return name; |
} |
exports.canonicalMember = canonicalMember; |