diff options
| author | 2022-03-09 14:36:26 -0500 | |
|---|---|---|
| committer | 2022-03-09 14:36:26 -0500 | |
| commit | efa9937bbc02d1be4b3259483962b8a54864699f (patch) | |
| tree | db7112c3b1f1efc5841ed653cf25803900bb6b93 | |
| parent | 612b7a69dc8c196df2e26a0d78b1adf0dcd54e5d (diff) | |
Prevent NPE if View has not been initialized
Sets the list to always be non-null (start with a non empty list)
Test: manual (no NPE)
Fixes: 222722721
Change-Id: I1ef5241cca189a857f39a737ba73638b44ef9a60
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java b/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java index 8c08873b9ab6..f2dd7700e65e 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java @@ -102,7 +102,7 @@ public class QuickStatusBarHeader extends FrameLayout { private int mTopViewMeasureHeight; @NonNull - private List<String> mRssiIgnoredSlots; + private List<String> mRssiIgnoredSlots = List.of(); private boolean mIsSingleCarrier; private boolean mHasCenterCutout; |