Skip to content

Commit

Permalink
Avoiding unsupported operation exceptions on empty lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
tHerrmann committed Feb 15, 2017
1 parent 55bd0ab commit a20a1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/opencms/ade/containerpage/CmsModelGroupHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ private List<CmsContainerBean> readModelContainers(
if (containerByParent.containsKey(modelInstanceId)) {
modelContainers = collectModelStructure(modelInstanceId, localInstanceId, containerByParent);
} else {
modelContainers = Collections.emptyList();
modelContainers = new ArrayList<CmsContainerBean>();
}
return modelContainers;
}
Expand Down

0 comments on commit a20a1c9

Please sign in to comment.