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

Commit 22e00004 authored by Ben Kwa's avatar Ben Kwa
Browse files

Fix an NPE in RestoreStackTask.

BUG=27007822

Change-Id: I166dc89bfe94f2a07a1fe3769cbce763b7472ec0
parent 1f67a301
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -457,7 +457,6 @@ public class DocumentsActivity extends BaseActivity {

        private volatile boolean mRestoredStack;
        private volatile boolean mExternal;
        private Context mContext;
        private State mState;

        public RestoreStackTask(DocumentsActivity activity) {
@@ -470,7 +469,7 @@ public class DocumentsActivity extends BaseActivity {
            if (DEBUG && !mState.stack.isEmpty()) {
                Log.w(TAG, "Overwriting existing stack.");
            }
            RootsCache roots = DocumentsApplication.getRootsCache(mContext);
            RootsCache roots = DocumentsApplication.getRootsCache(mOwner);

            String packageName = mOwner.getCallingPackageMaybeExtra();
            Uri resumeUri = RecentsProvider.buildResume(packageName);