Skip to content

Commit

Permalink
fix hepa EOF due to client not found (#6204) (#6205)
Browse files Browse the repository at this point in the history
Co-authored-by: chengjoey <[email protected]>
  • Loading branch information
erda-bot and chengjoey authored Dec 29, 2023
1 parent 28ad4ae commit 368f45d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ func (impl GatewayOrgClientServiceImpl) GetCredentials(id string) (res dto.Clien
if err != nil {
return
}
if dao == nil {
err = errors.New("client not found")
return
}
res = dto.ClientInfoDto{
ClientId: dao.Id,
ClientSecret: dao.ClientSecret,
Expand Down

0 comments on commit 368f45d

Please sign in to comment.