Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 289a1bda authored by Deepika Sai Amuri's avatar Deepika Sai Amuri Committed by Patrick Jacques
Browse files

SearchDialog: Fix for NullpointerException while using Suggestions in

Browser

Change-Id: Ic208ae51e4f7678363ea6d7de9db97707713bf6d
parent be1da028
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)) {