Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use protobuf Getters to avoid nil reference #2646

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

andrew-coleman
Copy link
Member

In the gateway registry, use the proto generated Get… methods to access the proto structures rather than direct field references.
This protects against dereferencing nil pointers for incomplete structures. Some unit tests added.

Signed-off-by: andrew-coleman andrew_coleman@uk.ibm.com

In the gateway registry, use the proto generated Get… methods to access the proto structures rather than direct field references.
This protects against dereferencing nil pointers for incomplete structures.  Some unit tests added.

Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>
@andrew-coleman andrew-coleman requested a review from a team as a code owner June 7, 2021 15:15
@manish-sethi manish-sethi merged commit 04796e6 into hyperledger:main Jun 7, 2021
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.

2 participants