Skip to content

Comments

fix: add checks for nested fields#60

Merged
Alonza0314 merged 2 commits intofree5gc:mainfrom
Jasonkuo23:fix/add-checks-for-nested-fields
Jan 26, 2026
Merged

fix: add checks for nested fields#60
Alonza0314 merged 2 commits intofree5gc:mainfrom
Jasonkuo23:fix/add-checks-for-nested-fields

Conversation

@Jasonkuo23
Copy link
Contributor

@Jasonkuo23 Jasonkuo23 commented Jan 5, 2026

@c9274326 this PR is for fixing issue #759.

Problem:
The OpenCDR function assumes pDUSessionChargingInformation.pduSessionInformation is non-nil and accesses related information without a prior nil check.

Fixes:
I added nil checks for the pDUSessionChargingInformation.pduSessionInformation nested fields and displaying warning logs as well as returning problem details when facing this problem.

@roundspring2003
Copy link
Contributor

@Alonza0314 LGTM
test all pass

@Alonza0314 Alonza0314 merged commit 5dabc81 into free5gc:main Jan 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants