]> git.saurik.com Git - cycript.git/blobdiff - Library.mm
Fixed one stupid CYON bug in what was otherwise an awesome release.
[cycript.git] / Library.mm
index 2c642c61b9fbc2a4c38f4a12dbf795f54837bd9b..2c22bb10598c6ce86467be883642e24807be2aea 100644 (file)
@@ -1405,6 +1405,9 @@ NSString *CYCopyNSCYON(id value) {
 }
 
 NSString *CYCopyNSCYON(JSContextRef context, JSValueRef value, JSValueRef *exception) {
+    if (JSValueIsNull(context, value))
+        return [@"null" retain];
+
     CYTry {
         CYPoolTry {
             return CYCopyNSCYON(CYCastNSObject(NULL, context, value));