diff --git a/internal/sbi/consumer/nrf_service.go b/internal/sbi/consumer/nrf_service.go index 7c94f86..0bde016 100644 --- a/internal/sbi/consumer/nrf_service.go +++ b/internal/sbi/consumer/nrf_service.go @@ -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 }