Permalink
Browse files

fix(language-service): ignore null metadatas (#20557)

There can be null metadatas in certain cases, for example with locales.

Fixes #20260

PR Close #20557
  • Loading branch information...
victornoel authored and mhevery committed Nov 21, 2017
1 parent 521f0d4 commit 48a1f32222f6968ac66ef6c42f6efd1812b384b2
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/compiler/src/aot/static_symbol_resolver.ts
@@ -481,7 +481,7 @@ export class StaticSymbolResolver {
if (moduleMetadatas) {
let maxVersion = -1;
moduleMetadatas.forEach((md) => {
if (md['version'] > maxVersion) {
if (md && md['version'] > maxVersion) {
maxVersion = md['version'];
moduleMetadata = md;
}

0 comments on commit 48a1f32

Please sign in to comment.