Skip to content

Commit

Permalink
Make mutable copy of button list.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Schaefermeier committed Dec 20, 2015
1 parent 6f3ffa6 commit da5a5a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public void setRootObject(PatternAnnotationContainer root) {

@Override
protected List<MListButton> getListItemButtons(MListItem item) {
List<MListButton> listItemButtons = super.getListItemButtons(item);
List<MListButton> listItemButtons = new ArrayList<MListButton>(super.getListItemButtons(item));
if (item instanceof PatternListItem) {
final PatternModel patternModel = ((PatternListItem) item).getPatternModel();
if (!patternModel.isClassPattern()) {
Expand Down

0 comments on commit da5a5a0

Please # to comment.