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

Fix a null pointer exception caused by branching on uninitialized data. #51310

Merged

Conversation

mihaimaruseac
Copy link
Collaborator

This is due to not checking that the params for the quantization exists. If there is no quantization, we should not access the .params field.

PiperOrigin-RevId: 385168337
Change-Id: I28661e4f12ba1c92cfeae23d22a3fb2df2a2c6a4

This is due to not checking that the params for the quantization exists. If there is no quantization, we should not access the `.params` field.

PiperOrigin-RevId: 385168337
Change-Id: I28661e4f12ba1c92cfeae23d22a3fb2df2a2c6a4
@google-cla google-cla bot added the cla: yes label Aug 5, 2021
@mihaimaruseac mihaimaruseac merged commit d4389be into r2.4 Aug 5, 2021
@mihaimaruseac mihaimaruseac deleted the mm-cp-4a91f2069f7145aab6ba2d8cfe41be8a110c18a5-on-r2.4 branch August 5, 2021 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant