Fixed null pointer exception
This commit is contained in:
parent
e90829157a
commit
34d9c0759d
|
@ -176,7 +176,7 @@ public class Validator {
|
|||
// int upperBound = fieldsMandatoryUpperBoundMap.get(entry.getKey());
|
||||
String maxOccurs = metadataFieldMap.get(entry.getKey()).getMaxOccurs();
|
||||
int upperBound = Integer.MAX_VALUE;
|
||||
if(maxOccurs.compareTo("*")==0) {
|
||||
if(maxOccurs==null || maxOccurs.compareTo("*")==0) {
|
||||
upperBound = Integer.MAX_VALUE;
|
||||
}else {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue