From c36f4a7745ac0092982933987c694a6b605de35d Mon Sep 17 00:00:00 2001 From: mkardous-silabs <84793247+mkardous-silabs@users.noreply.github.com> Date: Tue, 9 Jan 2024 16:55:32 -0500 Subject: [PATCH] fix regen (#31326) --- .../java/zap-generated/CHIPEventTLVValueDecoder.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;