|
|
@@ -247,7 +247,11 @@ public class Asset extends CollectionBaseEntity {
|
|
|
public static Asset create(Collection collection, User user) {
|
|
|
Set<Tag> tags;
|
|
|
if (collection.getTags() != null) {
|
|
|
- tags = new HashSet<>(collection.getTags());
|
|
|
+ if (collection.getTags().size() > 0) {
|
|
|
+ tags = new HashSet<>(collection.getTags());
|
|
|
+ } else {
|
|
|
+ tags = new HashSet<>();
|
|
|
+ }
|
|
|
} else {
|
|
|
tags = new HashSet<>();
|
|
|
}
|