|
@@ -35,14 +35,16 @@ public class ParserUtils {
|
|
|
|
|
|
public static List<Long> parseJsonForRiskVideos(String s) {
|
|
|
List<Long> dataNew = new ArrayList<>();
|
|
|
-
|
|
|
+ if (s == null){
|
|
|
+ return dataNew;
|
|
|
+ }
|
|
|
try {
|
|
|
String[] data = s.split(",");
|
|
|
for (String item : data) {
|
|
|
Long value = Long.parseLong(item);
|
|
|
dataNew.add(value);
|
|
|
}
|
|
|
- } catch (NumberFormatException e) {
|
|
|
+ } catch (Exception e) {
|
|
|
System.err.println("Error parsing string: " + e.getMessage());
|
|
|
}
|
|
|
|