more NPE fixes
This commit is contained in:
parent
a732847f58
commit
0bd6a4a7eb
|
@ -758,7 +758,11 @@ public abstract class BaseWorkerContext implements IWorkerContext {
|
|||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <T extends Resource> T fetchResourceWithException(Class<T> class_, String uri) throws FHIRException {
|
||||
if (class_ == StructureDefinition.class)
|
||||
if (uri == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (class_ == StructureDefinition.class)
|
||||
uri = ProfileUtilities.sdNs(uri, getOverrideVersionNs());
|
||||
synchronized (lock) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue