[PR #2173] [MERGED] [SG-806] Mobile wrong environment endpoints crash #78641

Closed
opened 2026-05-19 16:03:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/2173
Author: @andrebispo5
Created: 11/6/2022
Status: Merged
Merged: 11/7/2022
Merged by: @andrebispo5

Base: masterHead: bugfix/sg-806-wrong-environment-url


📝 Commits (1)

  • 7660dda [SG-806] add try catch on initAsync

📊 Changes

1 file changed (+23 additions, -6 deletions)

View changed files

📝 src/App/Pages/Accounts/LoginPageViewModel.cs (+23 -6)

📄 Description

Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

Fix bug. When the user is saving new environment endpoints and if one of them is wrong, the app will crash.

Code changes

Add try catch to LoginViewModel -> InitAsync method.

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/2173 **Author:** [@andrebispo5](https://github.com/andrebispo5) **Created:** 11/6/2022 **Status:** ✅ Merged **Merged:** 11/7/2022 **Merged by:** [@andrebispo5](https://github.com/andrebispo5) **Base:** `master` ← **Head:** `bugfix/sg-806-wrong-environment-url` --- ### 📝 Commits (1) - [`7660dda`](https://github.com/bitwarden/android/commit/7660dda4d49d6dad2d70aed17d3fd917bf6c1a7b) [SG-806] add try catch on initAsync ### 📊 Changes **1 file changed** (+23 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/App/Pages/Accounts/LoginPageViewModel.cs` (+23 -6) </details> ### 📄 Description ## Type of change - [X] Bug fix - [ ] New feature development - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [ ] Other ## Objective <!--Describe what the purpose of this PR is. For example: what bug you're fixing or what new feature you're adding--> Fix bug. When the user is saving new environment endpoints and if one of them is wrong, the app will crash. ## Code changes <!--Explain the changes you've made to each file or major component. This should help the reviewer understand your changes--> <!--Also refer to any related changes or PRs in other repositories--> Add try catch to `LoginViewModel -> InitAsync` method. ## Before you submit - Please check for formatting errors (`dotnet format --verify-no-changes`) (required) - Please add **unit tests** where it makes sense to do so (encouraged but not required) - If this change requires a **documentation update** - notify the documentation team - If this change has particular **deployment requirements** - notify the DevOps team --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-19 16:03:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#78641