Ensure the default alphaId configuration is an empty list rather than null

This commit is contained in:
Ehren Kret 2020-07-07 09:34:02 -05:00
parent e021286eee
commit 6c1ba957bd
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import com.google.common.annotations.VisibleForTesting;
import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;
public class TwilioConfiguration {
@ -55,7 +56,7 @@ public class TwilioConfiguration {
@NotNull
@Valid
private List<TwilioAlphaIdConfiguration> alphaId;
private List<TwilioAlphaIdConfiguration> alphaId = new ArrayList<>();
public String getAccountId() {
return accountId;