Skip to content

Commit

Permalink
#2 Clear any exceptions when retrieving Java field ids (ignore them f…
Browse files Browse the repository at this point in the history
…or now).
  • Loading branch information
ttveldhuis committed Jan 7, 2020
1 parent a6054f3 commit 49a7812
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified src/debug/resources/lib/libJTouchBarJavaFX.dylib
Binary file not shown.
1 change: 1 addition & 0 deletions src/main/objective-c++/Bridged/JNI/JTouchBarJavaFXJNI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
jfieldID GetFieldIDSafe(JNIEnv* env, jclass cls, const char* name, const char* sig) {
jfieldID fieldId = env->GetFieldID(cls, name, sig);
if(env->ExceptionCheck()) {
env->ExceptionClear();
return nullptr;
}

Expand Down

0 comments on commit 49a7812

Please sign in to comment.