Skip to content

Commit 80de7e1

Browse files
fix typo
1 parent 4d80505 commit 80de7e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/support/JniReferences.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ jshort JniReferences::ShortToPrimitive(jobject boxedShort)
402402
ChipLogError(Support, "ShortToPrimitive failed due to %" CHIP_ERROR_FORMAT, err.Format()));
403403

404404
jmethodID valueMethod = env->GetMethodID(boxedTypeCls, "shortValue", "()S");
405-
return env->CallShortMethod(boxedDouble, valueMethod);
405+
return env->CallShortMethod(boxedShort, valueMethod);
406406
}
407407

408408
CHIP_ERROR JniReferences::CallSubscriptionEstablished(jobject javaCallback, long subscriptionId)

0 commit comments

Comments
 (0)