Skip to content

RedfishClientPkg/ConverterLib: check JSON value type#77

Open
nicklela wants to merge 1 commit into
tianocore:mainfrom
nicklela:attribute-null-value-check
Open

RedfishClientPkg/ConverterLib: check JSON value type#77
nicklela wants to merge 1 commit into
tianocore:mainfrom
nicklela:attribute-null-value-check

Conversation

@nicklela

Copy link
Copy Markdown
Contributor

Check and see if JSON object type is desired type before getting its value. According to the Redfish schema, attribute value can be null value. Add this error handling to avoid system assertion while getting attribute value.

Cc: Abner Chang abner.chang@amd.com
Cc: Igor Kulchytskyy igork@ami.com
Cc: Nick Ramirez nramirez@nvidia.com

Check and see if JSON object type is desired type before
getting its value. According to the Redfish schema, attribute
value can be null value. Add this error handling to avoid
system assertion while getting attribute value.

Signed-off-by: Nickle Wang <nicklew@nvidia.com>
Cc: Abner Chang <abner.chang@amd.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Cc: Nick Ramirez <nramirez@nvidia.com>
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.

1 participant