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

Fixes IAM NPE with getDisplayPosition #1119

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

jkasten2
Copy link
Member

@jkasten2 jkasten2 commented Aug 20, 2020

  • It is possible for messageView to become null if you dismissed the IAM
    then closed the Activity before the IAM animation finishes. Then if the IAM
    animation finishes before the next Activity is shown.
  • Fixed by adding a null check to calculateHeightAndShowWebViewAfterNewActivity
    as it is not require now that an IAM is no longer showing.

This change is Reviewable

* It is possible for messageView to become null if you dismissed the IAM
then closed the Activity before the IAM animation finishes. Then if the IAM
animation finishes before the next Activity is shown.
* Fixed by adding a null check to calculateHeightAndShowWebViewAfterNewActivity
as it is not require now that an IAM is no longer showing.
@jkasten2 jkasten2 requested a review from Jeasmine August 20, 2020 08:24
Copy link
Contributor

@Jeasmine Jeasmine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, seems like we have a flaky test tesWriteWithNullContextAndSavesAfterSetting

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