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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

MBL-1182: Crash from rx chain returning null in TwoFactorViewModel.kt #1951

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

leighdouglas
Copy link
Contributor

馃摬 What

Cleanup for TwoFactorViewModel to fix this crash

馃 Why

Knockin out bugs

馃洜 How

Can't easily reproduce but:

  • Made the intent passed into the viewmodel nonnull
  • return an empty string if password or email from intent is null - if an empty string is passed down because there is no email or password in the intent, it will not allow login with an error message. doing the normal filtering for null values will cause there to be no reaction when the user taps submit and there wont be an error message. I figured empty string route is better

馃憖 See

no user facing changes

馃搵 QA

  • Login with two factor auth, make sure there are no hiccups

Story 馃摉

MBL-1182: Crash from rx chain returning null in TwoFactorViewModel.kt

@leighdouglas leighdouglas merged commit 7d33deb into master Feb 15, 2024
3 checks passed
@leighdouglas leighdouglas deleted the leigh/mbl-1182 branch February 15, 2024 20:55
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.

None yet

3 participants