mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-01 02:42:03 +00:00
CPCib -initWithContentsOfURL: return nil if the returned data is nil (non existent URL, request failed for some reason ...)
This commit is contained in:
1 parent
176440eeae
commit
f4904b8915
1 file changed
+4
@@ -61,6 +61,10 @@ var CPCibObjectDataKey = @"CPCibObjectDataKey";
|
||||
if (self)
|
||||
{
|
||||
_data = [CPURLConnection sendSynchronousRequest:[CPURLRequest requestWithURL:aURL] returningResponse:nil];
|
||||
|
||||
if (!_data)
|
||||
return nil;
|
||||
|
||||
_awakenCustomResources = YES;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user