Skip to content

Commit

Permalink
Merge pull request #782 from hashmapinc/Tempus-765-bug-fix
Browse files Browse the repository at this point in the history
Tempus-765 bug fix
  • Loading branch information
shgupta22 committed Oct 8, 2018
2 parents 0979bba + 27bd8c7 commit 9474229
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.hibernate.annotations.TypeDef;

import javax.persistence.*;
import java.util.Collections;
import java.util.List;

@NoArgsConstructor
Expand Down Expand Up @@ -98,6 +99,8 @@ public CustomerGroup toData() {
customerGroup.setAdditionalInfo(additionalInfo);
if (policies != null && !policies.isEmpty()) {
customerGroup.setPolicies(policies);
} else {
customerGroup.setPolicies(Collections.emptyList());
}
return customerGroup;
}
Expand Down

0 comments on commit 9474229

Please sign in to comment.