Skip to content

Commit

Permalink
Remove Integer from PaseVerifierParams constructor
Browse files Browse the repository at this point in the history
The spec was updated to force PasscodeId to be always zero for v1.0, and this was updated in project-chip#15924. This change removes it from the corresponding JNI constructor which was missed in the original fix.
  • Loading branch information
ajwak committed Jul 11, 2022
1 parent 0cda316 commit 1923dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/java/CHIPDeviceController-JNI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ CHIP_ERROR N2J_PaseVerifierParams(JNIEnv * env, jlong setupPincode, jbyteArray p
SuccessOrExit(err);

env->ExceptionClear();
constructor = env->GetMethodID(paramsClass, "<init>", "(JI[B)V");
constructor = env->GetMethodID(paramsClass, "<init>", "(J[B)V");
VerifyOrExit(constructor != nullptr, err = CHIP_JNI_ERROR_METHOD_NOT_FOUND);

outParams = (jobject) env->NewObject(paramsClass, constructor, setupPincode, paseVerifier);
Expand Down

0 comments on commit 1923dc9

Please sign in to comment.