We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e2ec61b + b00d41a commit b2b0db2Copy full SHA for b2b0db2
core/java/android/app/SearchDialog.java
@@ -1107,6 +1107,9 @@ protected boolean launchSuggestion(int position) {
1107
* @return true if a successful launch, false if could not (e.g. bad position).
1108
*/
1109
protected boolean launchSuggestion(int position, int actionKey, String actionMsg) {
1110
+ if (mSuggestionsAdapter == null) {
1111
+ return false;
1112
+ }
1113
Cursor c = mSuggestionsAdapter.getCursor();
1114
if ((c != null) && c.moveToPosition(position)) {
1115
0 commit comments