From 87af4dc4a88de034e438cea03fd4122c2d391f82 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Mon, 17 Nov 2008 21:40:05 +0000 Subject: It's possible for GetOleInterface() to return NULL. Degrade gracefully in this case. BUG=3906 Review URL: http://codereview.chromium.org/11213 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5576 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/autocomplete/autocomplete_edit.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/browser/autocomplete/autocomplete_edit.h') diff --git a/chrome/browser/autocomplete/autocomplete_edit.h b/chrome/browser/autocomplete/autocomplete_edit.h index 99309ef..07324701 100644 --- a/chrome/browser/autocomplete/autocomplete_edit.h +++ b/chrome/browser/autocomplete/autocomplete_edit.h @@ -772,7 +772,8 @@ class AutocompleteEditView // Getter for the text_object_model_, used by the ScopedXXX classes. Note // that the pointer returned here is only valid as long as the - // AutocompleteEdit is still alive. + // AutocompleteEdit is still alive. Also, if the underlying call fails, this + // may return NULL. ITextDocument* GetTextObjectModel() const; // Invoked during a mouse move. As necessary starts a drag and drop session. -- cgit v1.1