Commit 9d374e89 authored by darin's avatar darin

Reviewed by Mitz.

        - fix http://bugs.webkit.org/show_bug.cgi?id=12180
          REGRESSION: Double-clicking on JS exception in JS log crashes in -[SharedBufferData initWithSharedBuffer:]

        * WebView/WebDataSource.mm: (-[WebDataSource data]): Added null check.



git-svn-id: svn://svn.chromium.org/blink/trunk@18767 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent d04e9de6
2007-01-11 Darin Adler <darin@apple.com>
Reviewed by Mitz.
- fix http://bugs.webkit.org/show_bug.cgi?id=12180
REGRESSION: Double-clicking on JS exception in JS log crashes in -[SharedBufferData initWithSharedBuffer:]
* WebView/WebDataSource.mm: (-[WebDataSource data]): Added null check.
2007-01-11 Darin Adler <darin@apple.com> 2007-01-11 Darin Adler <darin@apple.com>
Reviewed by Hyatt. Reviewed by Hyatt.
......
...@@ -377,7 +377,10 @@ static inline void addTypesFromClass(NSMutableDictionary *allTypes, Class objCCl ...@@ -377,7 +377,10 @@ static inline void addTypesFromClass(NSMutableDictionary *allTypes, Class objCCl
- (NSData *)data - (NSData *)data
{ {
return [_private->loader->mainResourceData()->createNSData() autorelease]; RefPtr<SharedBuffer> mainResourceData = _private->loader->mainResourceData();
if (!mainResourceData)
return nil;
return [mainResourceData->createNSData() autorelease];
} }
- (id <WebDocumentRepresentation>)representation - (id <WebDocumentRepresentation>)representation
......
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