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

Commit 0e183b2e authored by Aditya Singh's avatar Aditya Singh
Browse files

Guard DocumentStack#peek null check

DocumentStack#peek could return null even when stack is not null. With
now it loads default location when stack is empty.

Bug: 408128466
Test: n/a
Flag: EXEMPT bugfix
Change-Id: I71286d7ed0e58059ff982fcf5367fbeea99a4787
parent ee93336a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -272,7 +272,7 @@ class ActionHandler<T extends FragmentActivity & Addons> extends AbstractActionH
    }

    private void onLastAccessedStackLoaded(@Nullable DocumentStack stack) {
        if (stack == null) {
        if (stack == null || stack.peek() == null) {
            loadDefaultLocation();
        } else if (shouldPreemptivelyRestrictRequestedInitialUri(stack.peek().getDocumentUri())) {
            // If the last accessed stack has restricted uri, load default location