Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse SDK 1.8.5 crash Terminating app due to uncaught exception #310

Closed
mohitngm opened this issue Sep 23, 2015 · 2 comments
Closed

Parse SDK 1.8.5 crash Terminating app due to uncaught exception #310

mohitngm opened this issue Sep 23, 2015 · 2 comments
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Milestone

Comments

@mohitngm
Copy link

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

  • (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:

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)"}

@nlutsenko
Copy link
Contributor

Hey @mohitngm, thanks for the report.
Will look into it, thanks.

@nlutsenko nlutsenko self-assigned this Sep 23, 2015
@nlutsenko nlutsenko added this to the 1.9.0 milestone Sep 30, 2015
@nlutsenko nlutsenko added type:bug Impaired feature or lacking behavior that is likely assumed and removed needs investigation labels Sep 30, 2015
@nlutsenko
Copy link
Contributor

Valid potential problem, pull request is coming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

2 participants