Skip to content

NullPointerException in IntermediateActivity on Android 11 (OnePlus devices) #523

@TimmyBoyen

Description

@TimmyBoyen

Using Plugin.Firebase with:

  • Plugin.Firebase.Analytics

  • Plugin.Firebase.Crashlytics

  • Plugin.Firebase.RemoteConfig

We experience a crash on Android 11, especially OnePlus devices, in the internal IntermediateActivity during onCreate():

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.content.Intent.migrateExtraStreamToClipData(android.content.Context)' on a null object reference
    at crc64ba438d8f48cf7e75.IntermediateActivity.n_onCreate(Native Method)
    at crc64ba438d8f48cf7e75.IntermediateActivity.onCreate(IntermediateActivity.java:...)

Steps to Reproduce:

  1. Use the above Plugin.Firebase modules in a .NET MAUI app.

  2. Launch the app or trigger Firebase functionality.

  3. Crash occurs on Android 11 (OnePlus). Works on emulators/other devices.

Observed Behavior:

  • getIntent() in IntermediateActivity is null, causing the crash in migrateExtraStreamToClipData().

Expected Behavior:

  • IntermediateActivity should handle null Intents gracefully.

  • Avoid crashing on Android 11 OEM devices.

Environment:

  • Plugin.Firebase version: 3.1.1

  • .NET MAUI version: .net9

  • Device: OnePlus Android 11

  • Emulator: Pixel 5 / Android 11 (no crash)

Request:

  • Add null-checks for getIntent() in IntermediateActivity.

  • Ensure Android 11 OEM compatibility for empty Intents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions