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

Commit 0e52f40b authored by Daisuke Miyakawa's avatar Daisuke Miyakawa Committed by Android (Google) Code Review
Browse files

Merge "Fix possible NPE in ContactPhotoManager." into ics-mr0

parents 832dc19a bf9b213e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -359,8 +359,10 @@ class ContactPhotoManagerImpl extends ContactPhotoManager implements Callback {

        view.setImageBitmap(holder.bitmap);

        if (holder.bitmap != null) {
            // Put the bitmap in the LRU cache
            mBitmapCache.put(request, holder.bitmap);
        }

        // Soften the reference
        holder.bitmap = null;