We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3c5f924 + d4717b8 commit df35aa4Copy full SHA for df35aa4
core/java/android/webkit/WebViewClassic.java
@@ -8242,6 +8242,12 @@ public void onChanged() {
8242
8243
@Override
8244
public void run() {
8245
+ if (mWebViewCore == null
8246
+ || getWebView().getWindowToken() == null
8247
+ || getWebView().getViewRootImpl() == null) {
8248
+ // We've been detached and/or destroyed since this was posted
8249
+ return;
8250
+ }
8251
final ListView listView = (ListView) LayoutInflater.from(mContext)
8252
.inflate(com.android.internal.R.layout.select_dialog, null);
8253
final MyArrayListAdapter adapter = new MyArrayListAdapter();
0 commit comments