Skip to content

Commit

Permalink
add nil check on chargingInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
ianchen0119 authored Aug 17, 2023
1 parent d3301c2 commit 99241d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sbi/producer/smpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func createSMPolicyProcedure(request models.SmPolicyContextData) (
logger.SmPolicyLog.Errorf("Fail to get charging data to mongoDB err: %+v", err)
logger.SmPolicyLog.Errorf("chargingInterface %+v", chargingInterface)
util.SetPccRuleRelatedData(&decision, pcc, nil, nil, nil, nil)
} else {
} else if chargingInterface != nil {
chgData := &models.ChargingData{
ChgId: util.GetChgId(smPolicyData.ChargingIdGenerator),
RatingGroup: smPolicyData.RatingGroupIdGenerator,
Expand Down

0 comments on commit 99241d1

Please sign in to comment.