facebook/three20 — pull request #717 by ettore (2011-11-05 00:30:34+00:00)
Title: Preventing occasional crash in TTURLRequestQueue :: createNSURLRequest:URL:

Resubmitting this pull request ( https://github.com/facebook/three20/pull/700 ) to development branch.

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.