Merge pull request #1637 from cacaodev/CPCib-initWithCibNamed

CPCib -initWithContentsOfURL: return nil if the requested data is nil.
This commit is contained in:
aparajita committed 2012-07-27 14:51:22 -07:00
commit 2400b6aeab
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;
}