debug: null guard

fixes #16622
This commit is contained in:
isidor 2017-02-01 11:12:37 +01:00
parent c335bde263
commit db7d305c4d

View file

@ -312,7 +312,7 @@ export class ConfigurationManager implements debug.IConfigurationManager {
return null;
}
return config.configurations.filter(config => config.name === name).pop();
return config.configurations.filter(config => config && config.name === name).pop();
}
public resloveConfiguration(config: debug.IConfig): TPromise<debug.IConfig> {