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

Commit c523de6d authored by Fengjiang Li's avatar Fengjiang Li Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE of TopTaskTracker" into tm-qpr-dev

parents c1e12fc1 8af9940f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -302,7 +302,10 @@ public class TopTaskTracker extends ISplitScreenListener.Stub implements TaskSta

        @Nullable
        public String getPackageName() {
            return mTopTask == null ? null : mTopTask.baseActivity.getPackageName();
            if (mTopTask == null || mTopTask.baseActivity == null) {
                return null;
            }
            return mTopTask.baseActivity.getPackageName();
        }
    }
}