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

Commit b0650c06 authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

am b1f6aebb: Merge "Fix Bitmap#sameAs NPE" into mnc-dev

* commit 'b1f6aebb':
  Fix Bitmap#sameAs NPE
parents 39c69db1 b1f6aebb
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1575,11 +1575,12 @@ public final class Bitmap implements Parcelable {
     */
    public boolean sameAs(Bitmap other) {
        checkRecycled("Can't call sameAs on a recycled bitmap!");
        if (this == other) return true;
        if (other == null) return false;
        if (other.isRecycled()) {
            throw new IllegalArgumentException("Can't compare to a recycled bitmap!");
        }
        return this == other || (other != null
                && nativeSameAs(mFinalizer.mNativeBitmap, other.mFinalizer.mNativeBitmap));
        return nativeSameAs(mFinalizer.mNativeBitmap, other.mFinalizer.mNativeBitmap);
    }

    /**