Changeset 17514 in webkit


Ignore:
Timestamp:
Oct 31, 2006 11:15:28 PM (17 years ago)
Author:
bdash
Message:

2006-10-31 Mark Rowe <bdash@webkit.org>

Reviewed by Maciej.

Fix null pointer dereference while running editing/pasteboard/drag-drop-modifies-page.html

  • Misc/WebElementDictionary.m: (-[WebElementDictionary _image]): Add null check.
Location:
trunk/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/ChangeLog

    r17511 r17514  
     12006-10-31  Mark Rowe  <bdash@webkit.org>
     2
     3        Reviewed by Maciej.
     4
     5        Fix null pointer dereference while running editing/pasteboard/drag-drop-modifies-page.html
     6
     7        * Misc/WebElementDictionary.m:
     8        (-[WebElementDictionary _image]): Add null check.
     9
    1102006-10-31  Beth Dakin  <bdakin@apple.com>
    211
  • trunk/WebKit/Misc/WebElementDictionary.m

    r17511 r17514  
    172172- (NSImage *)_image
    173173{
    174     return _result->image()->getNSImage();
     174    Image *image = _result->image();
     175    return image ? image->getNSImage() : nil;
    175176}
    176177
Note: See TracChangeset for help on using the changeset viewer.