[PR #3209] [MERGED] [PM-7855][PM-7869]\ Fix null check to AppOptions to avoid NRE #30101

Closed
opened 2026-04-18 13:56:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/3209
Author: @fedemkr
Created: 5/1/2024
Status: Merged
Merged: 5/2/2024
Merged by: @fedemkr

Base: mainHead: mobiletf/pm-7855/fix-nre-on-unlocking


📝 Commits (1)

  • b974ecc PM-7855 Fix null check to _appOptions to avoid NRE detected on AppCenter

📊 Changes

6 files changed (+24 additions, -6 deletions)

View changed files

📝 src/Core/Pages/Accounts/LockPage.xaml.cs (+4 -1)
📝 src/Core/Pages/Accounts/LoginApproveDevicePage.xaml.cs (+4 -1)
📝 src/Core/Pages/Accounts/LoginPage.xaml.cs (+4 -1)
📝 src/Core/Pages/Accounts/LoginPasswordlessRequestPage.xaml.cs (+4 -1)
📝 src/Core/Pages/Accounts/SetPasswordPage.xaml.cs (+4 -1)
📝 src/Core/Pages/Accounts/TwoFactorPage.xaml.cs (+4 -1)

📄 Description

Type of change

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

Objective

Fix null check to _appOptions to avoid NRE

Code changes

  • all: Added _appOptions null check before setting their properties

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/3209 **Author:** [@fedemkr](https://github.com/fedemkr) **Created:** 5/1/2024 **Status:** ✅ Merged **Merged:** 5/2/2024 **Merged by:** [@fedemkr](https://github.com/fedemkr) **Base:** `main` ← **Head:** `mobiletf/pm-7855/fix-nre-on-unlocking` --- ### 📝 Commits (1) - [`b974ecc`](https://github.com/bitwarden/android/commit/b974eccb2bbdd159c335dbefb4fa52fc4a891109) PM-7855 Fix null check to _appOptions to avoid NRE detected on AppCenter ### 📊 Changes **6 files changed** (+24 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/Core/Pages/Accounts/LockPage.xaml.cs` (+4 -1) 📝 `src/Core/Pages/Accounts/LoginApproveDevicePage.xaml.cs` (+4 -1) 📝 `src/Core/Pages/Accounts/LoginPage.xaml.cs` (+4 -1) 📝 `src/Core/Pages/Accounts/LoginPasswordlessRequestPage.xaml.cs` (+4 -1) 📝 `src/Core/Pages/Accounts/SetPasswordPage.xaml.cs` (+4 -1) 📝 `src/Core/Pages/Accounts/TwoFactorPage.xaml.cs` (+4 -1) </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 null check to _appOptions to avoid NRE ## 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--> * **all:** Added `_appOptions` null check before setting their properties ## 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-04-18 13:56:24 -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#30101