Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 996afd17 authored by Abdelrahman Daim's avatar Abdelrahman Daim
Browse files

Protect the Settings application from potential null pointer exceptions.



Summary: The app bar is not available, causing a null pointer exception.

Test: Successful Build on master branch

Change-Id: I36849606f6587d6e7f004ae21e1a6e6a5206735a
Signed-off-by: default avatarAbdelrahman Daim <adaim@meta.com>
parent feee29ca
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1034,6 +1034,9 @@ public class ManageApplications extends InstrumentedFragment
    }

    private void autoSetCollapsingToolbarLayoutScrolling() {
        if (mAppBarLayout == null) {
            return;
        }
        final CoordinatorLayout.LayoutParams params =
                (CoordinatorLayout.LayoutParams) mAppBarLayout.getLayoutParams();
        final AppBarLayout.Behavior behavior = new AppBarLayout.Behavior();