use correct license when one is not supplied

This commit is contained in:
nwoodward
2021-09-03 09:06:33 -05:00
parent 1123e0b700
commit 4511b5e9e8

View File

@@ -183,7 +183,7 @@ public class PackageUtils {
Item item, Collection collection)
throws SQLException, IOException, AuthorizeException {
if (license == null) {
license = collection.getLicenseCollection();
license = collectionService.getLicense(collection);
}
InputStream lis = new ByteArrayInputStream(license.getBytes());