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

Commit eb7b050a authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Fix NPE in ContactLoader

Bug 6402781

Change-Id: I9e18400731cf23cfc00344e90003879642405fe9
parent afe795a2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1345,6 +1345,10 @@ public class ContactLoader extends AsyncTaskLoader<ContactLoader.Result> {
     * contact. If the next load is for a different contact, the cached result will be dropped
     */
    public void cacheResult() {
        if (mContact == null) {
            sCachedResult = null;
        } else {
            sCachedResult = new Result(mContact);
        }
    }
}