Avoid NPE reported via Play Store
This commit is contained in:
parent
5270ebd629
commit
e77c341542
1 changed files with 5 additions and 0 deletions
|
@ -185,6 +185,11 @@ public class SingleMessageView extends LinearLayout implements OnClickListener,
|
|||
|
||||
WebView webview = (WebView) v;
|
||||
WebView.HitTestResult result = webview.getHitTestResult();
|
||||
|
||||
if (result == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
int type = result.getType();
|
||||
Context context = getContext();
|
||||
|
||||
|
|
Loading…
Reference in a new issue