Skip to content

Commit

Permalink
fix(language-service): ignore null metadatas (#20557)
Browse files Browse the repository at this point in the history
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 Jan 2, 2018
1 parent 521f0d4 commit 48a1f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler/src/aot/static_symbol_resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 48a1f32

Please sign in to comment.