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

Commit 7bd44d97 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android Git Automerger
Browse files

am b3482ffb: Merge "Fix crash when decoding bitmap" into jb-dev

* commit 'b3482ffb':
  Fix crash when decoding bitmap
parents 2a52d26c b3482ffb
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -360,6 +360,9 @@ static jobject doDecode(JNIEnv* env, SkStream* stream, jobject padding,
        // already have a pixelref installed.
        // already have a pixelref installed.
        pr = bitmap->pixelRef();
        pr = bitmap->pixelRef();
    }
    }
    if (pr == NULL) {
        return nullObjectReturn("Got null SkPixelRef");
    }


    if (!isMutable) {
    if (!isMutable) {
        // promise we will never change our pixels (great for sharing and pictures)
        // promise we will never change our pixels (great for sharing and pictures)