mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 01:28:50 -05:00
Avoid NPE reported via Play Store
This commit is contained in:
parent
5270ebd629
commit
e77c341542
@ -185,6 +185,11 @@ public class SingleMessageView extends LinearLayout implements OnClickListener,
|
|||||||
|
|
||||||
WebView webview = (WebView) v;
|
WebView webview = (WebView) v;
|
||||||
WebView.HitTestResult result = webview.getHitTestResult();
|
WebView.HitTestResult result = webview.getHitTestResult();
|
||||||
|
|
||||||
|
if (result == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int type = result.getType();
|
int type = result.getType();
|
||||||
Context context = getContext();
|
Context context = getContext();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user