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

Commit e1fc36d1 authored by sergeyv's avatar sergeyv
Browse files

Fix npe due to strict mode in Bitmap.sameAs

bug:38164234
Test: none
Change-Id: Ib267d1b06f86980202693fc1c330f73ed06411b0
parent bbc764e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1869,9 +1869,9 @@ public final class Bitmap implements Parcelable {
    public boolean sameAs(Bitmap other) {
        checkRecycled("Can't call sameAs on a recycled bitmap!");
        noteHardwareBitmapSlowCall();
        other.noteHardwareBitmapSlowCall();
        if (this == other) return true;
        if (other == null) return false;
        other.noteHardwareBitmapSlowCall();
        if (other.isRecycled()) {
            throw new IllegalArgumentException("Can't compare to a recycled bitmap!");
        }