mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 07:26:47 +00:00
Ensure the default alphaId configuration is an empty list rather than null
This commit is contained in:
1 parent
e021286eee
commit
6c1ba957bd
1 file changed
+2
-1
+2
-1
@@ -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