Skip to content

Commit b909b6a

Browse files
Michael KolbAndroid (Google) Code Review
authored andcommitted
Merge "Monkey protection"
2 parents b849e6c + 87a435a commit b909b6a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/java/android/webkit/WebViewClassic.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9007,8 +9007,10 @@ public void onItemClick(AdapterView<?> parent, View v,
90079007
// after the page regains focus.
90089008
mListBoxMessage = Message.obtain(null,
90099009
EventHub.SINGLE_LISTBOX_CHOICE, (int) id, 0);
9010-
mListBoxDialog.dismiss();
9011-
mListBoxDialog = null;
9010+
if (mListBoxDialog != null) {
9011+
mListBoxDialog.dismiss();
9012+
mListBoxDialog = null;
9013+
}
90129014
}
90139015
});
90149016
if (mSelection != -1) {

0 commit comments

Comments
 (0)