Skip to content

Preventing NullReferenceException on WebAuthenticatorIntermediateActivity #13798

@PureWeen

Description

@PureWeen

Description

We have a PR here to address an NRE inside the WebAuthenticatorIntermediateActivity.Android.cs but we have some concerns that the fix won't resolve the entire issue. It doesn't seem like the fix was validated against an actual repro. Upon reviewing the code, we feel like this is going to just move the exception down to the OnResume call.

We currently don't have a repro for this so once we're able to get validation that this fix worked on .NET 8 or a repro we can validate then we'll look into back porting.

Reproduction

These are from @vhugogarcia

https://github.com/vhugogarcia/MauiOAuthDemo

https://play.google.com/store/apps/details?id=com.mi.globalbrowser

This is the browser, I used on my Android simulator locally to reproduce the crash.

Steps:

  1. On an Android emulator with Google Play Services installed and Google Play Store configured, search for "Mi Browser" and install it.
  2. Open "Mi Browser" app and configure it as default browser in Android.
  3. Run the application on the Android device/simulator and try to login with the following attached demo credentials.
  4. Expect the crash to happen.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions