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

Commit df1745a1 authored by Chien-Yu Chen's avatar Chien-Yu Chen Committed by Android Git Automerger
Browse files

am aca98de4: Merge "ImageWriter: Remove exception for closing twice" into mnc-dev

* commit 'aca98de4':
  ImageWriter: Remove exception for closing twice
parents 8c1ce34b aca98de4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -361,8 +361,7 @@ static void ImageWriter_close(JNIEnv* env, jobject thiz, jlong nativeCtx) {
    ALOGV("%s:", __FUNCTION__);
    JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx);
    if (ctx == NULL || thiz == NULL) {
        jniThrowException(env, "java/lang/IllegalStateException",
                "ImageWriterContext is not initialized");
        // ImageWriter is already closed.
        return;
    }