Skip to content

Commit b23f1e7

Browse files
authored
Merge pull request #228 from umbraco/bugfix/shopify-null-page-info-details
Check page info details if null
2 parents 2eac989 + 74d47ae commit b23f1e7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Umbraco.Cms.Integrations.Commerce.Shopify/Services/ShopifyService.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,11 @@ public async Task<ResponseDto<ProductsListDto>> GetResults(string pageInfo)
213213
};
214214

215215
var pageInfoDetails = response.GetPageInfo();
216-
responseDto.PreviousPageInfo = pageInfoDetails.Item1;
217-
responseDto.NextPageInfo = pageInfoDetails.Item2;
216+
if (pageInfoDetails != null)
217+
{
218+
responseDto.PreviousPageInfo = pageInfoDetails.Item1;
219+
responseDto.NextPageInfo = pageInfoDetails.Item2;
220+
}
218221

219222
return responseDto;
220223
}

src/Umbraco.Cms.Integrations.Commerce.Shopify/Umbraco.Cms.Integrations.Commerce.Shopify.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PackageIconUrl></PackageIconUrl>
1111
<PackageProjectUrl>https://github.com/umbraco/Umbraco.Cms.Integrations/blob/main/src/Umbraco.Cms.Integrations.Commerce.Shopify</PackageProjectUrl>
1212
<RepositoryUrl>https://github.com/umbraco/Umbraco.Cms.Integrations</RepositoryUrl>
13-
<Version>1.2.2</Version>
13+
<Version>1.2.3</Version>
1414
<Authors>Umbraco HQ</Authors>
1515
<Company>Umbraco</Company>
1616
<PackageTags>Umbraco;Umbraco-Marketplace</PackageTags>

0 commit comments

Comments
 (0)