mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-15 09:25:07 +00:00
Fix the null pointer problems in the DataRangeParam class
This commit is contained in:
parent
f2b8b6bf6c
commit
ef1275c937
@ -255,7 +255,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();
|
||||
@ -310,7 +310,7 @@ public class DateRangeParam implements IQueryParameterAnd<DateParam> {
|
||||
}
|
||||
|
||||
public Date getUpperBoundAsInstant() {
|
||||
if (myUpperBound == null) {
|
||||
if (myUpperBound == null || myUpperBound.getValue() == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user