Skip to content

Conversation

@rileyajones
Copy link
Contributor

If a mat-autocomplete element does not contain any mat-options it will throw a null pointer when it is unloaded. Adding a simple null check solves this.

Googlers see cl/741219851

@rileyajones rileyajones requested a review from a team as a code owner March 27, 2025 21:12
@rileyajones rileyajones requested review from crisbeto and mmalerba and removed request for a team March 27, 2025 21:12
@mmalerba mmalerba added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Apr 2, 2025
@mmalerba mmalerba merged commit febc0eb into angular:main Apr 2, 2025
9 of 11 checks passed
mmalerba pushed a commit that referenced this pull request Apr 2, 2025
* fix a bug with null options

* Add a test

(cherry picked from commit febc0eb)
mistrykaran91 pushed a commit to mistrykaran91/components that referenced this pull request Apr 7, 2025
* fix a bug with null options

* Add a test
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants