diff --git a/src/jniutils.cc b/src/jniutils.cc index b455edd..985c153 100644 --- a/src/jniutils.cc +++ b/src/jniutils.cc @@ -142,7 +142,7 @@ namespace pEp { throw std::invalid_argument(std::string(methodname)); } - return env->CallLongMethod(obj, method, o); + return env->CallBooleanMethod(obj, method, o); } jint outOfMemory(JNIEnv *env)