Skip to content

Commit

Permalink
fix(app-distribution, ios): avoid crash when releaseNotes is nil (#5667)
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiKitagata authored Aug 31, 2021
1 parent 600dee0 commit 41c0107
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,10 @@ - (dispatch_queue_t)methodQueue {
resolve(@{
@"displayVersion" : release.displayVersion,
@"buildVersion" : release.buildVersion,
@"releaseNotes" : release.releaseNotes,
@"releaseNotes" : release.releaseNotes == nil ? [NSNull null] : release.releaseNotes,
@"isExpired" : [NSNumber numberWithBool:release.isExpired],
@"downloadURL" : release.downloadURL
});

resolve([NSNull null]); // FIXME read the result into a map and return it!
}];
}

Expand Down

1 comment on commit 41c0107

@vercel
Copy link

@vercel vercel bot commented on 41c0107 Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.