Bug 674353 - Avoid using null pointer when trying to autocomplete. r=mak
This commit is contained in:
@@ -1391,7 +1391,7 @@ nsAutoCompleteController::ClearResults()
|
||||
nsresult
|
||||
nsAutoCompleteController::CompleteDefaultIndex(PRInt32 aResultIndex)
|
||||
{
|
||||
if (mDefaultIndexCompleted || mBackspaced || mSearchString.Length() == 0)
|
||||
if (mDefaultIndexCompleted || mBackspaced || mSearchString.Length() == 0 || !mInput)
|
||||
return NS_OK;
|
||||
|
||||
PRInt32 selectionStart;
|
||||
|
||||
Reference in New Issue
Block a user