Avoid trying to fetch SD by null URL (test case added)
This commit is contained in:
parent
57136da0bb
commit
076ee562e3
|
@ -1720,7 +1720,11 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
|
||||||
ok = true;
|
ok = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (sd.getBaseDefinition() != null) {
|
||||||
sd = context.fetchResource(StructureDefinition.class, sd.getBaseDefinition());
|
sd = context.fetchResource(StructureDefinition.class, sd.getBaseDefinition());
|
||||||
|
} else {
|
||||||
|
sd = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue