facebook/three20 — pull request #712 by ettore (2011-10-25 20:38:47+00:00)
Title: (dev) 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.