mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-27 16:56:07 +00:00
Add a null check
This commit is contained in:
parent
6168f4ab32
commit
3db4091601
@ -1112,6 +1112,10 @@ public abstract class BaseHapiFhirDao<T extends IBaseResource> implements IDao {
|
||||
}
|
||||
|
||||
IFhirResourceDao<R> dao = getDao(theResourceType);
|
||||
if (dao == null) {
|
||||
throw new InternalErrorException("No DAO for resource type: " + theResourceType.getName());
|
||||
}
|
||||
|
||||
Set<Long> ids = dao.searchForIds(paramMap);
|
||||
|
||||
return ids;
|
||||
|
Loading…
x
Reference in New Issue
Block a user