mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 06:14:45 +00:00
fix npe
This commit is contained in:
parent
e73447939b
commit
8790780feb
@ -630,6 +630,9 @@ public class CanonicalResourceManager<T extends CanonicalResource> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<T> getSupplements(T cr) {
|
public List<T> getSupplements(T cr) {
|
||||||
|
if (cr == null) {
|
||||||
|
return new ArrayList<T>();
|
||||||
|
}
|
||||||
if (cr.hasSourcePackage()) {
|
if (cr.hasSourcePackage()) {
|
||||||
List<String> pvl = new ArrayList<>();
|
List<String> pvl = new ArrayList<>();
|
||||||
pvl.add(cr.getSourcePackage().getVID());
|
pvl.add(cr.getSourcePackage().getVID());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user