forked from D-Net/dnet-hadoop
added try catch to be removed
This commit is contained in:
parent
21399fc433
commit
9d56f6d75d
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue