Make sure we actually have a type associated with the resourceId or we get an exception
This commit is contained in:
parent
8b7723b6e8
commit
1a7e43d2a8
|
@ -225,7 +225,7 @@ class RuleImplOp extends BaseRule /* implements IAuthRule */ {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (appliesToResourceId != null) {
|
if (appliesToResourceId != null && appliesToResourceId.hasResourceType()) {
|
||||||
Class<? extends IBaseResource> type = theRequestDetails.getServer().getFhirContext().getResourceDefinition(appliesToResourceId.getResourceType()).getImplementingClass();
|
Class<? extends IBaseResource> type = theRequestDetails.getServer().getFhirContext().getResourceDefinition(appliesToResourceId.getResourceType()).getImplementingClass();
|
||||||
if (myAppliesToTypes.contains(type) == false) {
|
if (myAppliesToTypes.contains(type) == false) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue