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…
Reference in New Issue