You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: error)'
PFURLSessionJSONDataTaskDelegate' s in
(void)_taskDidFinish {
.................
errorDictionary[@"error"] = [self.error localizedDescription];
// it crashes here as [self.error localizedDescription] is nil
}
it can be reproduced by turn off internet
Error object:
i got this crash when internet is off
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: error)'
PFURLSessionJSONDataTaskDelegate' s in
.................
errorDictionary[@"error"] = [self.error localizedDescription];
// it crashes here as [self.error localizedDescription] is nil
}
it can be reproduced by turn off internet
Error object:
Error Domain=NSURLErrorDomain Code=-1001 "(null)" UserInfo=0x14ed5580 {NSErrorFailingURLKey=https://api.parse.com/1/classes/_Installation/*, NSErrorFailingURLStringKey=https://api.parse.com/1/classes/_Installation/, NSUnderlyingError=Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)"}
The text was updated successfully, but these errors were encountered: