Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

fix(select): Fix NPE by checking for controller existence. #7560

Conversation

topherfangio
Copy link
Contributor

In some cases, the select could be removed from the DOM before some
of the cleanup code was executed. This caused a .controller() call
to return null, but we did not check for existence before using
the controller which resulted in null pointer exception.

Fixes #7079.

In some cases, the select could be removed from the DOM before some
of the cleanup code was executed. This caused a `.controller()` call
to return `null`, but we did not check for existence before using
the controller which resulted in null pointer exception.

Fixes angular#7079.
@topherfangio topherfangio added needs: review This PR is waiting on review from the team - Easy fix P1: urgent Urgent issues that should be addressed in the next minor or patch release. labels Mar 14, 2016
@topherfangio topherfangio added this to the 1.1.0 milestone Mar 14, 2016
ThomasBurleson pushed a commit that referenced this pull request Mar 16, 2016
In some cases, the select could be removed from the DOM before some
of the cleanup code was executed. This caused a `.controller()` call
to return `null`, but we did not check for existence before using
the controller which resulted in null pointer exception.

Fixes #7079.

Closes #7560
@topherfangio topherfangio deleted the fix-select-controller-existence-7079 branch April 18, 2016 21:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team P1: urgent Urgent issues that should be addressed in the next minor or patch release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants