diff --git a/Zebra/JSONParsing/ZBCanisterDownloadIngests.m b/Zebra/JSONParsing/ZBCanisterDownloadIngests.m index bb3824d3c7..c5ebba01f1 100644 --- a/Zebra/JSONParsing/ZBCanisterDownloadIngests.m +++ b/Zebra/JSONParsing/ZBCanisterDownloadIngests.m @@ -37,11 +37,11 @@ -(instancetype)initWithPackage:(ZBPackage *_Nonnull)package { -(NSDictionary *)dictionary { return @{ - @"package_id": self.package_id, - @"package_version": self.package_version, - @"package_author": self.package_author, - @"package_maintainer": self.package_maintainer, - @"repository_uri": self.repostiory_uri + @"package_id": self.package_id ?: [NSNull null], + @"package_version": self.package_version ?: [NSNull null], + @"package_author": self.package_author ?: [NSNull null], + @"package_maintainer": self.package_maintainer ?: [NSNull null], + @"repository_uri": self.repostiory_uri ?: [NSNull null] }; }