Merge pull request #868 from Ser1ous/master

fix bug when in String[] array come null
This commit is contained in:
Lorenzo Pichilli 2022-04-15 23:32:33 +02:00 committed by GitHub
commit 45b68401b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}
}