Commit 90244557 authored by eric@webkit.org's avatar eric@webkit.org

Reviewed by Oliver.

        Add missing NULL check to match rest of file, this was found by the editing fuzzer.

        * WebView/WebResource.mm:
        (-[WebResource data]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33456 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 27007479
2008-05-14 Eric Seidel <eric@webkit.org>
Reviewed by Oliver.
Add missing NULL check to match rest of file, this was found by the editing fuzzer.
* WebView/WebResource.mm:
(-[WebResource data]):
2008-05-14 Alexey Proskuryakov <ap@webkit.org> 2008-05-14 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Dan Bernstein. Reviewed by Dan Bernstein.
......
...@@ -197,7 +197,9 @@ static NSString * const WebResourceResponseKey = @"WebResourceResponse" ...@@ -197,7 +197,9 @@ static NSString * const WebResourceResponseKey = @"WebResourceResponse"
- (NSData *)data - (NSData *)data
{ {
return _private->coreResource ? [_private->coreResource->data()->createNSData() autorelease] : 0; if (_private->coreResource && _private->coreResource->data())
return [_private->coreResource->data()->createNSData() autorelease];
return 0;
} }
- (NSURL *)URL - (NSURL *)URL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment