@@ -182,12 +182,12 @@ jobject convertCastingPlayerFromCppToJava(matter::casting::memory::Strong<core::
182
182
183
183
// Create a new instance of the MatterCastingPlayer Java class
184
184
jobject jMatterCastingPlayer = nullptr ;
185
- jMatterCastingPlayer =
186
- env->NewObject (matterCastingPlayerJavaClass, constructor, static_cast <jboolean> (player->IsConnected ()),
187
- env->NewStringUTF (player->GetId ()), env->NewStringUTF (player->GetHostName ()),
188
- env-> NewStringUTF ( player->GetDeviceName ()), env-> NewStringUTF ( player->GetInstanceName ()), jIpAddressList ,
189
- (jint) (player-> GetPort ()), (jint) (player->GetProductId ()), (jint ) (player->GetVendorId ()),
190
- (jlong) (player-> GetDeviceType ()), static_cast <jboolean>(player->isCommissionerPasscodeSupported ()));
185
+ jMatterCastingPlayer = env-> NewObject (matterCastingPlayerJavaClass, constructor, static_cast <jboolean>(player-> IsConnected ()),
186
+ env->NewStringUTF (player-> GetId ()), env-> NewStringUTF (player->GetHostName ()),
187
+ env->NewStringUTF (player->GetDeviceName ()), env->NewStringUTF (player->GetInstanceName ()),
188
+ jIpAddressList, (jint) ( player->GetPort ()), (jint) ( player->GetProductId ()),
189
+ (jint) (player->GetVendorId ()), (jlong ) (player->GetDeviceType ()),
190
+ static_cast <jboolean>(player->GetSupportsCommissionerGeneratedPasscode ()));
191
191
if (jMatterCastingPlayer == nullptr )
192
192
{
193
193
ChipLogError (AppServer, " convertCastingPlayerFromCppToJava(): Could not create MatterCastingPlayer Java object" );
0 commit comments