]> git.saurik.com Git - cycript.git/blobdiff - Java/Execute.cpp
The value from +alloc can be a permanent (NSDate).
[cycript.git] / Java / Execute.cpp
index f382bc94c32e454d6977c505ffadc25cc225139d..4ea8a51a7c29a365ada32f37f4760c8514d08784 100644 (file)
@@ -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));
 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);
     CYJavaEnv jni(self->value_);
 
     CYJavaSignature bound(count);