Skip to content

Commit

Permalink
Merge pull request #868 from Ser1ous/master
Browse files Browse the repository at this point in the history
fix bug when in String[] array come null
  • Loading branch information
pichillilorenzo authored Apr 15, 2022
2 parents 104eeab + 3979987 commit 45b6840
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ private Boolean acceptsVideo(String[] types) {

private Boolean arrayContainsString(String[] array, String pattern) {
for (String content : array) {
if (content.contains(pattern)) {
if (content != null && content.contains(pattern)) {
return true;
}
}
Expand Down

0 comments on commit 45b6840

Please sign in to comment.