Fix the null pointer problems in the DataRangeParam class
This commit is contained in:
parent
734835de96
commit
ea5cf9f956
|
@ -256,7 +256,7 @@ public class DateRangeParam implements IQueryParameterAnd<DateParam> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getLowerBoundAsInstant() {
|
public Date getLowerBoundAsInstant() {
|
||||||
if (myLowerBound == null) {
|
if (myLowerBound == null || myLowerBound.getValue() == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
Date retVal = myLowerBound.getValue();
|
Date retVal = myLowerBound.getValue();
|
||||||
|
@ -303,7 +303,7 @@ public class DateRangeParam implements IQueryParameterAnd<DateParam> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getUpperBoundAsInstant() {
|
public Date getUpperBoundAsInstant() {
|
||||||
if (myUpperBound == null) {
|
if (myUpperBound == null || myUpperBound.getValue() == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
Date retVal = myUpperBound.getValue();
|
Date retVal = myUpperBound.getValue();
|
||||||
|
|
Loading…
Reference in New Issue