fix bug when in String[] array come null
This commit is contained in:
parent
f06bcdf695
commit
397998788b
|
@ -1004,7 +1004,7 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR
|
||||||
|
|
||||||
private Boolean arrayContainsString(String[] array, String pattern) {
|
private Boolean arrayContainsString(String[] array, String pattern) {
|
||||||
for (String content : array) {
|
for (String content : array) {
|
||||||
if (content.contains(pattern)) {
|
if (content != null && content.contains(pattern)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue