We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b572a0 commit 7b5480eCopy full SHA for 7b5480e
1 file changed
ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/model/SendUSMSMessageParam.java
@@ -91,7 +91,7 @@ public List<Param> checkPhoneNumbers() throws ValidatorException {
91
public List<Param> checkTemplateParams() throws ValidatorException {
92
List<Param> params = new ArrayList<>();
93
if (templateParams == null || templateParams.isEmpty()) {
94
- throw new ValidatorException("templateParams can not be empty");
+ return params;
95
}
96
int size = templateParams.size();
97
String templateParamFormat = "TemplateParams.%d";
0 commit comments