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 committed by Eeva Turkka
parent f2b8b6bf6c
commit ef1275c937
1 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,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();
@ -310,7 +310,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;
} }