Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
Update Utils.java
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhPatange authored May 29, 2020
1 parent a3db92d commit 9d69897
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.util.Log;

import com.naveed.ytextractor.model.YTMedia;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -34,7 +36,7 @@ public static String extractVideoID(String Url) {

public static boolean isListContain(List<String> arraylist, String statement) {
for (String str : arraylist) {
if (statement.toLowerCase().contains(str)) {
if (statement != null && statement.toLowerCase().contains(str)) {
return true;
}
}
Expand Down

0 comments on commit 9d69897

Please sign in to comment.