Merge pull request #868 from Ser1ous/master
fix bug when in String[] array come null
This commit is contained in:
commit
45b68401b5
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user