We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3d5fec commit 45a3917Copy full SHA for 45a3917
1 file changed
src/main/java/com/coveo/pushapiclient/PlatformClient.java
@@ -616,6 +616,9 @@ public String[] getUserAgents() {
616
}
617
618
public void setUserAgents(String[] userAgents) {
619
+ if (userAgents == null) {
620
+ throw new IllegalArgumentException("User agents cannot be null");
621
+ }
622
if (!validUserAgents(userAgents)) {
623
throw new IllegalArgumentException("Invalid user agents");
624
0 commit comments