forked from D-Net/dnet-hadoop
[BulkTagging] added check to verify if field is present in the pathMap
This commit is contained in:
parent
4374d7449e
commit
c94d94035c
|
@ -53,6 +53,8 @@ public class Constraints implements Serializable {
|
||||||
|
|
||||||
for (Constraint sc : constraint) {
|
for (Constraint sc : constraint) {
|
||||||
boolean verified = false;
|
boolean verified = false;
|
||||||
|
if(!param.containsKey(sc.getField()))
|
||||||
|
return false;
|
||||||
for (String value : param.get(sc.getField())) {
|
for (String value : param.get(sc.getField())) {
|
||||||
if (sc.verifyCriteria(value.trim())) {
|
if (sc.verifyCriteria(value.trim())) {
|
||||||
verified = true;
|
verified = true;
|
||||||
|
|
Loading…
Reference in New Issue