fix bug when in String[] array come null

This commit is contained in:
aleksandrpaskevic 2021-05-31 17:18:06 +03:00
parent f06bcdf695
commit 397998788b
1 changed files with 1 additions and 1 deletions

View File

@ -1004,7 +1004,7 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR
private Boolean arrayContainsString(String[] array, String pattern) {
for (String content : array) {
if (content.contains(pattern)) {
if (content != null && content.contains(pattern)) {
return true;
}
}