commit | 6a4fb45e3835dc40011878f6bee540f9ca8e198d | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Thu Sep 26 10:30:43 2024 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Sep 26 10:30:43 2024 +0000 |
tree | ccc0fec5d82494cf6440d4f064968a317c76ac45 | |
parent | fdbd2d109017c2aa9636db8ea36bb3653875c1d9 [diff] | |
parent | 996afd17a1603a010c1a198c3aef9d9f71224bae [diff] |
Merge "Protect the Settings application from potential null pointer exceptions." into main
diff --git a/src/com/android/settings/applications/manageapplications/ManageApplications.java b/src/com/android/settings/applications/manageapplications/ManageApplications.java index 6c16d94..b837e1e 100644 --- a/src/com/android/settings/applications/manageapplications/ManageApplications.java +++ b/src/com/android/settings/applications/manageapplications/ManageApplications.java
@@ -1034,6 +1034,9 @@ } private void autoSetCollapsingToolbarLayoutScrolling() { + if (mAppBarLayout == null) { + return; + } final CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) mAppBarLayout.getLayoutParams(); final AppBarLayout.Behavior behavior = new AppBarLayout.Behavior();