am b2b0db2d: Merge "SearchDialog: Fix for NullpointerException while using Suggestions in Browser"
* commit 'b2b0db2d5c89ae8824a4cb5d7944bae3a1dc8bf4': SearchDialog: Fix for NullpointerException while using Suggestions in Browser
This commit is contained in:
committed by
Android Git Automerger
commit
c8454a851f
@@ -1109,6 +1109,9 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
|
||||
* @return true if a successful launch, false if could not (e.g. bad position).
|
||||
*/
|
||||
protected boolean launchSuggestion(int position, int actionKey, String actionMsg) {
|
||||
if (mSuggestionsAdapter == null) {
|
||||
return false;
|
||||
}
|
||||
Cursor c = mSuggestionsAdapter.getCursor();
|
||||
if ((c != null) && c.moveToPosition(position)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user