mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Bug 674353 - Avoid using null pointer when trying to autocomplete. r=mak
This commit is contained in:
parent
9cf5e89521
commit
02f995556f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user