Skip to content

Commit

Permalink
fix: searchnfinstance res nil
Browse files Browse the repository at this point in the history
  • Loading branch information
donald1218 committed Oct 17, 2024
1 parent 826e8a6 commit cebb3db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/sbi/consumer/nrf_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ func (s *nnrfService) SendSearchNFInstances(nrfUri string, targetNfType, request
if err != nil {
logger.ConsumerLog.Errorf("SearchNFInstances failed: %+v", err)
}
result = &res.SearchResult
if res != nil {
result = &res.SearchResult
}
return result, err
}

Expand Down

0 comments on commit cebb3db

Please sign in to comment.