Skip to content

Commit 1223854

Browse files
austinh0pull[bot]
authored andcommitted
Fix accidental Verify condition (#12564)
1 parent cf5fca3 commit 1223854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/java/AndroidClusterExceptions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ CHIP_ERROR AndroidClusterExceptions::CreateIllegalStateException(JNIEnv * env, c
7171
void AndroidClusterExceptions::ReturnIllegalStateException(JNIEnv * env, jobject callback, const char message[],
7272
ChipError errorCode)
7373
{
74-
VerifyOrReturn(callback == nullptr, ChipLogDetail(Zcl, "Callback is null in ReturnIllegalStateException(), exiting early"));
74+
VerifyOrReturn(callback != nullptr, ChipLogDetail(Zcl, "Callback is null in ReturnIllegalStateException(), exiting early"));
7575

7676
CHIP_ERROR err = CHIP_NO_ERROR;
7777
jmethodID method;

0 commit comments

Comments
 (0)