diff --git a/src/controller/java/zap-generated/CHIPEventTLVValueDecoder.cpp b/src/controller/java/zap-generated/CHIPEventTLVValueDecoder.cpp index 1131cdcb3ea1c1..7f8f8be2a0077f 100644 --- a/src/controller/java/zap-generated/CHIPEventTLVValueDecoder.cpp +++ b/src/controller/java/zap-generated/CHIPEventTLVValueDecoder.cpp @@ -2610,8 +2610,11 @@ jobject DecodeEventValue(const app::ConcreteEventPath & aPath, TLV::TLVReader & ChipLogError(Zcl, "Could not find class ChipEventStructs$IcdManagementClusterOnTransitionToActiveModeEvent"); return nullptr; } - jmethodID onTransitionToActiveModeStructCtor = env->GetMethodID(onTransitionToActiveModeStructClass, "", "()V"); - if (onTransitionToActiveModeStructCtor == nullptr) + + jmethodID onTransitionToActiveModeStructCtor; + err = chip::JniReferences::GetInstance().FindMethod(env, onTransitionToActiveModeStructClass, "", "()V", + &onTransitionToActiveModeStructCtor); + if (err != CHIP_NO_ERROR || onTransitionToActiveModeStructCtor == nullptr) { ChipLogError(Zcl, "Could not find ChipEventStructs$IcdManagementClusterOnTransitionToActiveModeEvent constructor"); return nullptr;