Skip to content

Commit

Permalink
Fix Android Commissioning Crash (#29063)
Browse files Browse the repository at this point in the history
  • Loading branch information
joonhaengHeo authored and pull[bot] committed Jan 11, 2024
1 parent a1886e3 commit 2442786
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/support/JniReferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,13 @@ CHIP_ERROR JniReferences::GetClassRef(JNIEnv * env, const char * clsType, jclass
if (strcmp(clsType, "java/util/Optional") == 0)
{
cls = env->FindClass("j$/util/Optional");
env->ExceptionClear();
}

if (cls == nullptr)
{
env->ExceptionClear();
cls = env->FindClass(clsType);
env->ExceptionClear();
}

if (cls == nullptr)
Expand Down

0 comments on commit 2442786

Please sign in to comment.