package org.netmelody.cii.domain;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public final class TargetGroup {

    private final List<Target> targets = new ArrayList<Target>();
    
    public TargetGroup() {
        this(new ArrayList<Target>());
    }
    
    public TargetGroup(Collection<Target> targets) {
        this.targets.addAll(targets);
    }

    public TargetGroup add(TargetGroup group) {
        final TargetGroup result = new TargetGroup(targets);
        result.targets.addAll(group.targets);
        return result;
    }
}

@@ -433,24 +433,88 @@
 up group) %7B%0A
+        if (null == group) %7B%0A            return this;%0A        %7D%0A
         fina

fix potential npe