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 Oct 26, 2023
1 parent aad2b29 commit 1283285
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 1283285

Please sign in to comment.