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

Commit 375aa0b0 authored by Carl Shapiro's avatar Carl Shapiro
Browse files

Fix a compare of JNI references to use IsSameObject.

Change-Id: I9932761271034ff5031730874daf7c147b6b008a
parent 84af86c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -378,7 +378,7 @@ static void Surface_unlockCanvasAndPost(
        JNIEnv* env, jobject clazz, jobject argCanvas)
{
    jobject canvas = env->GetObjectField(clazz, so.canvas);
    if (canvas != argCanvas) {
    if (env->IsSameObject(canvas, argCanvas) == JNI_FALSE) {
        doThrow(env, "java/lang/IllegalArgumentException", NULL);
        return;
    }