Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Preventing occasional crash in TTURLRequestQueue :: createNSURLRequest:URL: #700

Closed
wants to merge 1 commit into from

Conversation

ettore
Copy link
Contributor

@ettore ettore commented Oct 7, 2011

The crash happens because we're attempting to call NSURL :: URLWithString: with a request.urlPath == nil. I am aware that TTURLRequestQueue checks for blank urlPath's before queueing the request, but somehow this situation happens anyway. (Maybe during a memory warning cleanup?)

So I added a 2-liner sanity check to improve stability: this simply cancels the request in the case described above.

@jwang
Copy link
Contributor

jwang commented Oct 14, 2011

The lint should have thrown some warnings here. Also can you resubmit this with targeting the development branch instead of the master branch. Thanks!

@jwang
Copy link
Contributor

jwang commented Oct 26, 2011

thanks @ettore for resubmitting. Note: see #712

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants