Skip to content

Commit

Permalink
Fix Android Commissioning Crash (project-chip#29063)
Browse files Browse the repository at this point in the history
  • Loading branch information
joonhaengHeo authored and abpoth committed Sep 12, 2023
1 parent caf213f commit 62ac2b4
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 62ac2b4

Please sign in to comment.