Prevent crash when going from no selection to selection with mispelling checks enabled.
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::markMisspellings):
Repair check for null searchRange. Was inadvertently broken in recent checkin.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9187
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-05-23 David Harrison <harrison@apple.com>
+
+ Reviewed by Darin.
+
+ Prevent crash when going from no selection to selection with mispelling checks enabled.
+
+ * kwq/KWQKHTMLPart.mm:
+ (KWQKHTMLPart::markMisspellings):
+ Repair check for null searchRange. Was inadvertently broken in recent checkin.
+
2005-05-23 John Sullivan <sullivan@apple.com>
Reviewed by Dave Hyatt.
return;
SharedPtr<RangeImpl> searchRange(selection.toRange());
- if (searchRange.get() || searchRange->isDetached())
+ if (searchRange.isNull() || searchRange->isDetached())
return;
// If we're not in an editable node, bail.