Changeset 92240 in webkit


Ignore:
Timestamp:
Aug 2, 2011 3:19:25 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Missing null check in WebViewImpl::selectionRange
https://bugs.webkit.org/show_bug.cgi?id=65561

Patch by Varun Jain <varunjain@google.com> on 2011-08-02
Reviewed by Darin Fisher.

  • Source/WebKit/chromium/src/WebViewImpl.cpp:
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r92143 r92240  
     12011-08-02  Varun Jain  <varunjain@google.com>
     2
     3        Missing null check in WebViewImpl::selectionRange
     4        https://bugs.webkit.org/show_bug.cgi?id=65561
     5
     6        Reviewed by Darin Fisher.
     7
     8        *  Source/WebKit/chromium/src/WebViewImpl.cpp:
     9
    1102011-08-01  Scott Graham  <scottmg@chromium.org>
    211
  • trunk/Source/WebKit/chromium/src/WebViewImpl.cpp

    r92234 r92240  
    15501550        return false;
    15511551    RefPtr<Range> selectedRange = frame->selection()->toNormalizedRange();
     1552    if (!selectedRange)
     1553        return false;
    15521554    RefPtr<Range> range(Range::create(selectedRange->startContainer()->document(),
    15531555                                      selectedRange->startContainer(),
Note: See TracChangeset for help on using the changeset viewer.