in src/main/java/org/apache/sling/feature/scanner/impl/ContentPackageDescriptorImpl.java [85:102]
public ContentPackageDescriptorImpl(final String name,
final Artifact artifact,
final URL url,
final Manifest manifest,
final List<BundleDescriptor> bundles,
final List<String> paths,
final List<Configuration> configs,
final Properties packageProps) {
super(name);
this.bundles = bundles == null ? new ArrayList<>() : bundles;
this.paths = paths == null ? new ArrayList<>() : paths;
this.configs = configs == null ? new ArrayList<>() : configs;
this.artifact = artifact;
this.artifact.getId(); // throw NPE if artifact is null
this.artifactFile = url;
this.manifest = manifest;
this.packageProperties = packageProps;
}