X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/0b5f88f67491643e48cfb14b28a4e894296ae98f..78b24692d45f090f846e4c327ca7fa2ee6d302eb:/Java/Execute.cpp diff --git a/Java/Execute.cpp b/Java/Execute.cpp index f382bc9..4ea8a51 100644 --- a/Java/Execute.cpp +++ b/Java/Execute.cpp @@ -942,6 +942,7 @@ static bool CYCastJavaArguments(const CYJavaFrame &frame, const CYJavaShorty &sh static JSValueRef JavaMethod_callAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef _this, size_t count, const JSValueRef arguments[], JSValueRef *exception) { CYTry { auto internal(CYJavaMethod::Get(context, object)); CYJavaObject *self(CYGetJavaObject(context, _this)); + _assert(self != NULL); CYJavaEnv jni(self->value_); CYJavaSignature bound(count);