From 62ed08c6c34aca5016b387f3530087d6ec48958e Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sat, 23 Jun 2018 21:37:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20crash=20since=20-1=20relea?= =?UTF-8?q?se=20does=20not=20exist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/parsePatchmanifest.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ssn/parsePatchmanifest.ts b/src/ssn/parsePatchmanifest.ts index a614a53..baef51b 100644 --- a/src/ssn/parsePatchmanifest.ts +++ b/src/ssn/parsePatchmanifest.ts @@ -22,7 +22,9 @@ export default function parsePatchManifest(manifestFile: any): any { ReleaseUpdatePaths.elements.forEach((ReleaseUpdatePath: any) => { const from = ReleaseUpdatePath.elements[0].elements[0].text; const to = ReleaseUpdatePath.elements[1].elements[0].text; - out.releases[from].to.push(to); + if (from !== '-1') { + out.releases[from].to.push(to); + } out.releases[to].from.push(from); });