CPCib -initWithContentsOfURL: return nil if the requested data is nil

This commit is contained in:
cacaodev committed 2012-07-27 20:19:20 +02:00
1 parent bd0114aa06
commit f42b241469
1 file changed
+4
+4
View File
@@ -61,6 +61,10 @@ var CPCibObjectDataKey = @"CPCibObjectDataKey";
if (self)
{
_data = [CPURLConnection sendSynchronousRequest:[CPURLRequest requestWithURL:aURL] returningResponse:nil];
if (!_data)
return nil;
_awakenCustomResources = YES;
}