From f0a2043dc2f5af98baf7720fecad8d00e68adfaf Mon Sep 17 00:00:00 2001 From: Martin Fournier Date: Mon, 7 Mar 2022 17:28:11 -0500 Subject: [PATCH] Fix null ref when receiving invalid author --- tools/fetch-changelog/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/fetch-changelog/index.js b/tools/fetch-changelog/index.js index 1a193ced3..cf9bd2e2c 100644 --- a/tools/fetch-changelog/index.js +++ b/tools/fetch-changelog/index.js @@ -33,10 +33,10 @@ class MergeChangelog { sha: entry.sha, url: entry.html_url, user: { - id: entry.author.id, - login: entry.author.login, - avatar: entry.author.avatar_url, - url: entry.author.html_url, + id: entry.author?.id, + login: entry.author?.login, + avatar: entry.author?.avatar_url, + url: entry.author?.html_url, }, commit_date: entry.commit.committer.date, message: entry.commit.message,