mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
fix(language-service): ignore null metadatas (#20557)
There can be null metadatas in certain cases, for example with locales. Fixes #20260 PR Close #20557
This commit is contained in:
parent
d365077dfa
commit
3e47ea27f5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue