Commit ec07cf2b authored by andersca's avatar andersca

Reviewed by Tim.

        <rdar://problem/4841123>
        REGRESSION: Crash in WebCore::Range::boundaryPointsValid when replying to a mail Message
        
        * Misc/WebNSAttributedStringExtras.m:
        (+[NSAttributedString _web_attributedStringFromRange:]):
        If the range passed in is null, return null. When this function was in the bridge, it would never get called
        with a null range when nothing was selected. Instead, the range would just have invalid boundary points.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17813 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c9a5ea9f
2006-11-16 Anders Carlsson <acarlsson@apple.com>
Reviewed by Tim.
<rdar://problem/4841123>
REGRESSION: Crash in WebCore::Range::boundaryPointsValid when replying to a mail Message
* Misc/WebNSAttributedStringExtras.m:
(+[NSAttributedString _web_attributedStringFromRange:]):
If the range passed in is null, return null. When this function was in the bridge, it would never get called
with a null range when nothing was selected. Instead, the range would just have invalid boundary points.
2006-11-15 Adam Roben <aroben@apple.com>
Reviewed by Anders.
......
......@@ -157,7 +157,7 @@ + (NSAttributedString *)_web_attributedStringFromRange:(Range*)range
NSMutableAttributedString *result;
BEGIN_BLOCK_OBJC_EXCEPTIONS;
if (!range->boundaryPointsValid())
if (!range || !range->boundaryPointsValid())
return nil;
Node* firstNode = range->startNode();
......
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