Skip to content

[BUG][GSI] Settings crash (NullPointerException) when opening Quick Settings panel config on v16.0 #11

@erialsan

Description

@erialsan

Device Information

  • Device: HEADWOLF Hpad5 (tb8781p1_64)
  • OS Version: Project Matrixx Android 16
  • Type: GSI (Generic System Image)

Describe the Bug

A reproducible crash occurs immediately when attempting to open the "Quick Settings" panel configuration within the Matrixx settings.

The crash is caused by a NullPointerException at QuickSettings.onCreate when the system attempts to invoke removePreference() on a null PreferenceGroup reference. This is likely due to missing device-specific preferences in the GSI environment.

Steps to Reproduce

  1. Open Settings.
  2. Navigate to the Matrixx-specific customization menu.
  3. Tap on Quick Settings (QS Panel configuration).
  4. The Settings app crashes instantly.

Logcat / Stacktrace

time: 1780475532861
device fp: HEADWOLF/Hpad5/Hpad5:14/UP1A.231005.007/1711094180:user/release-keys
product board: tb8781p1_64
matrixx vers: 16.0
msg: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.Settings$MatrixxQuickSettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean androidx.preference.PreferenceGroup.removePreference(androidx.preference.Preference)' on a null object reference
stacktrace: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.Settings$MatrixxQuickSettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean androidx.preference.PreferenceGroup.removePreference(androidx.preference.Preference)' on a null object reference
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4702)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4899)
	...
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean androidx.preference.PreferenceGroup.removePreference(androidx.preference.Preference)' on a null object reference
	at com.matrixx.settings.fragments.QuickSettings.onCreate(QuickSettings.java:3046)
	at androidx.fragment.app.Fragment.performCreate(Fragment.java:3281)
	at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:2088)
	...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions