Fix the null pointer problems in the DataRangeParam class

This commit is contained in:
Heinz-Dieter Conradi 2018-08-01 14:58:02 +02:00
parent 734835de96
commit ea5cf9f956
1 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ public class DateRangeParam implements IQueryParameterAnd<DateParam> {
}
public Date getLowerBoundAsInstant() {
if (myLowerBound == null) {
if (myLowerBound == null || myLowerBound.getValue() == null) {
return null;
}
Date retVal = myLowerBound.getValue();
@ -303,7 +303,7 @@ public class DateRangeParam implements IQueryParameterAnd<DateParam> {
}
public Date getUpperBoundAsInstant() {
if (myUpperBound == null) {
if (myUpperBound == null || myUpperBound.getValue() == null) {
return null;
}
Date retVal = myUpperBound.getValue();