Skip to content

Crash] NullPointerException when opening Settings (Settings). #413

Description

@peaceandsex-max

Description

The app crashes consistently when attempting to open the Settings screen from the main interface. This issue is 100% reproducible on Android 14.

Steps to Reproduce

  1. Open ARVIO app.
  2. Navigate to the main Home screen.
  3. Tap on the Settings (gear) icon or menu option.
  4. The app immediately crashes and returns to the launcher.

Expected Behavior

The Settings screen should open normally, allowing users to configure their preferences.

Actual Behavior

The app crashes with a NullPointerException every time the Settings screen is accessed.

Logcat Output

E/AndroidRuntime(4243): Process: com.arvio.tv, PID: 4243
E/AndroidRuntime(4243): java.lang.NullPointerException: Attempt to invoke interface method 'int java.lang.CharSequence.length()' on a null object reference
E/AndroidRuntime(4243): at com.arvio.tv.[...]

Full log shows the crash occurs immediately after:
D/ProfileInstaller(4243): Skipping profile installation for com.arvio.tv
E/AndroidRuntime(4243): Process: com.arvio.tv, PID: 4243

Environment

  • App Version: 1.9.97
  • Device: OPPO Reno 12 5G
  • OS: Android 16
  • Source: Official GitHub release

Additional Context

  • The app works normally in all other screens.
  • The crash seems related to a null value being passed to CharSequence.length(), possibly from an uninitialized profile field, user name, URL, or localized string.
  • The log shows locale switching to es-ES, which might indicate a translation or resource loading issue.

Possible Cause

A text field (likely a profile name, description, or URL) is null when the Settings screen tries to render it, and the app does not handle this case properly before calling .length() on it.

Suggested Fix

Add a null-check before calling .length() on any CharSequence used in the Settings UI, or ensure the relevant field is always initialized with a default value.


Let me know if you need more logs or testing on my device. Happy to help debug further!

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