Skip to content

Commit

Permalink
Merge pull request #75 from Staketab/dev
Browse files Browse the repository at this point in the history
fix nullpointer exception
  • Loading branch information
sineDtS authored May 24, 2024
2 parents e499feb + e5d12b3 commit 69076ac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ public Page<DomainEntity> getAccountDomains(@Valid @ParameterObject BaseRequest
@Parameter(description = "Domain status") DomainStatus domainStatus,
@RequestParam(required = false, defaultValue = "")
@Parameter(description = "Domain Name") String searchStr) {
String status = domainStatus != null ? domainStatus.name() : null;
SearchParams searchParams = new SearchParams(searchStr);
return domainService.findAllByAccountPageable(request.withSortColumn(sortBy), accountAddress, searchParams, domainStatus.name());
return domainService.findAllByAccountPageable(request.withSortColumn(sortBy), accountAddress, searchParams, status);
}

@GetMapping("/simple")
Expand Down

0 comments on commit 69076ac

Please sign in to comment.