mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 20:48:06 +01:00
Ensure the default alphaId configuration is an empty list rather than null
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user