fix(nuget): handle missing properties (#6437)

This commit is contained in:
Michael Kriese 2020-06-05 07:21:31 +02:00 committed by GitHub
parent 33ca9d9aed
commit 3166e2b398
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ import { id } from './common';
const http = new Http(id); const http = new Http(id);
function getPkgProp(pkgInfo: XmlElement, propName: string): string { function getPkgProp(pkgInfo: XmlElement, propName: string): string {
return pkgInfo.childNamed('m:properties').childNamed(`d:${propName}`).val; return pkgInfo.childNamed('m:properties').childNamed(`d:${propName}`)?.val;
} }
export async function getReleases( export async function getReleases(