Collection<OriginalSourceBase> collectionElement = getCollectionElement(getEntity());
Collection<OriginalSourceBase> collectionDescription = getCollectionDescription(getEntity());
- if(collectionElement == null || collectionElement.isEmpty()){
+ if((collectionElement == null || collectionElement.isEmpty()) && (collectionDescription == null || collectionDescription.isEmpty())){
createEmptyContent();
- }else{
+ }
+ if (collectionElement != null && !collectionElement.isEmpty()){
List<OriginalSourceBase> elements = new ArrayList<>(collectionElement);
Collections.sort(elements, getComparator());
createDynamicContents(elements);
- if(collectionDescription == null || collectionDescription.isEmpty()){
- createEmptyContent();
- }else{
- List<OriginalSourceBase> elements = new ArrayList<>(collectionDescription);
+ if(collectionDescription != null && !collectionDescription.isEmpty()){
+ List<OriginalSourceBase> elements = new ArrayList<>(collectionDescription);
Collections.sort(elements, getComparator());
createDynamicContentsDisabled(elements);
forceExpansion = true;