added try catch to be removed

This commit is contained in:
Miriam Baglioni 2020-06-25 22:21:24 +02:00
parent 21399fc433
commit 9d56f6d75d
1 changed files with 19 additions and 13 deletions

View File

@ -153,24 +153,30 @@ public class SparkPatchRefereed implements Serializable {
return false;
}
//TODO verify the reason of the NullPointerException fired at line 167
private static boolean equals(List<String> url, List<String> url1) {
if (url == null && url1 == null) {
return true;
}
try{
if (url == null && url1 == null) {
return true;
}
if ((url1 == null && url != null) || (url != null && url1 == null)) {
return false;
}
if (url.size() != url1.size()) {
return false;
}
for (String u : url) {
if (!url1.contains(u)) {
if ((url1 == null && url != null) || (url != null && url1 == null)) {
return false;
}
if (url.size() != url1.size()) {
return false;
}
for (String u : url) {
if (!url1.contains(u)) {
return false;
}
}
return true;
}catch(Exception e){
return false;
}
return true;
}
public static <R> Dataset<R> readPath(