Skip to content

Commit

Permalink
Resolve to crash in the producer.selectNsiInformation when nsiInforma…
Browse files Browse the repository at this point in the history
…tionList in nssfcfg.conf is empty sequence (#3)

Co-authored-by: Shouhei Nishi <[email protected]>
  • Loading branch information
apssoft and ShouheiNishi authored Dec 27, 2021
1 parent 2183c75 commit 399df69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion producer/nsselection_for_pdu_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func nsselectionForPduSession(param plugin.NsselectionQueryParameter,

nsiInformationList := util.GetNsiInformationListFromConfig(*param.SliceInfoRequestForPduSession.SNssai)

if nsiInformationList == nil {
if len(nsiInformationList) == 0 {
*authorizedNetworkSliceInfo = models.AuthorizedNetworkSliceInfo{}
} else {
nsiInformation := selectNsiInformation(nsiInformationList)
Expand Down

0 comments on commit 399df69

Please sign in to comment.