-
Notifications
You must be signed in to change notification settings - Fork 130
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
Network failure in authentication treated as success, leading to null dereference #138
Comments
@mdpye looks like you might be right. Do you know what circumstances could have caused didFailWithError: to be called with a nil error? Perhaps PTURLRequestOperation should use a boolean flag to indicate failure rather than relying on the presence of an actual error - that should solve this issue. Do you see this error a lot? |
I'm afraid I don't know much about the circumstances - I'm working at Pusher, so I'm filing the report on behalf of someone who got in touch with support, don't have much visibility over their server logs for the period. |
OK, let me know if something similar comes up. I'll try and get a fix for this in the next release. |
Great, thank you. |
Hi there, I have encountered the same issue, app crash in libPusher w/ the same stack trace, w/ the same err message, when working w/ a server that uses to cough HTTP500 & binaries in JSONs from time to time.
|
@lukeredpath is the fix above fine to be added to the library? |
See http://crashes.to/s/c83e37cf8ad
From my (naive) reading,
connection:didFailWithError
was called (frame 6), but no error object was passed, so theconnectionError
is assigned a null value. When callingfinish
(frame 5) the success branch is chosen, because it detects previous failure by testingconnectionError
, assuming that if it has been assigned it will have been assigned something non-null.The text was updated successfully, but these errors were encountered: