Skip to content

Commit

Permalink
Modify type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
joonhaengHeo committed Mar 13, 2024
1 parent eb67ce9 commit cfc8c81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/java/AndroidOperationalCredentialsIssuer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ CHIP_ERROR N2J_AttestationInfo(JNIEnv * env, jbyteArray challenge, jbyteArray no
constructor = env->GetMethodID(infoClass, "<init>", "([B[B[B[B[B[B[B[BII)V");
VerifyOrExit(constructor != nullptr, err = CHIP_JNI_ERROR_METHOD_NOT_FOUND);

outAttestationInfo = (jobject) env->NewObject(infoClass, constructor, challenge, nonce, elements, elementsSignature, dac, pai,
cd, firmwareInfo, static_cast<jint>(vendorId), static_cast<jint>(productId));
outAttestationInfo = static_cast<jobject>(env->NewObject(infoClass, constructor, challenge, nonce, elements, elementsSignature, dac, pai,
cd, firmwareInfo, static_cast<jint>(vendorId), static_cast<jint>(productId)));

VerifyOrExit(!env->ExceptionCheck(), err = CHIP_JNI_ERROR_EXCEPTION_THROWN);
exit:
Expand Down

0 comments on commit cfc8c81

Please sign in to comment.