We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d80505 commit 80de7e1Copy full SHA for 80de7e1
src/lib/support/JniReferences.cpp
@@ -402,7 +402,7 @@ jshort JniReferences::ShortToPrimitive(jobject boxedShort)
402
ChipLogError(Support, "ShortToPrimitive failed due to %" CHIP_ERROR_FORMAT, err.Format()));
403
404
jmethodID valueMethod = env->GetMethodID(boxedTypeCls, "shortValue", "()S");
405
- return env->CallShortMethod(boxedDouble, valueMethod);
+ return env->CallShortMethod(boxedShort, valueMethod);
406
}
407
408
CHIP_ERROR JniReferences::CallSubscriptionEstablished(jobject javaCallback, long subscriptionId)
0 commit comments