| Paste number 60781: | Add missing NULL check to match rest of file, this was found by the editing fuzzer. |
| Pasted by: | MacDome |
| 3 months, 1 week ago | |
| #webkit | Context in IRC logs | |
| Paste contents: |
| WebKit/mac/WebView/WebResource.mm | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) f1e9f7cf47d670d9709d1d693095ab914b5ff509 diff --git a/WebKit/mac/WebView/WebResource.mm b/WebKit/mac/WebView/WebResource.mm index 6f43b88..5af650b 100644 --- a/WebKit/mac/WebView/WebResource.mm +++ b/WebKit/mac/WebView/WebResource.mm @@ -197,7 +197,9 @@ static NSString * const WebResourceResponseKey = @"WebResourceResponse" - (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 |
This paste has no annotations.