We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c29bbe commit 087f309Copy full SHA for 087f309
src/main/java/com/twilio/Twilio.java
@@ -116,14 +116,9 @@ public static synchronized void setPassword(final String password) {
116
* Set the account sid.
117
*
118
* @param accountSid account sid to use
119
- * @throws AuthenticationException if account sid is null
120
*/
121
public static synchronized void setAccountSid(final String accountSid) {
122
- if (accountSid == null) {
123
- throw new AuthenticationException("AccountSid can not be null");
124
- }
125
-
126
- if (!accountSid.equals(Twilio.accountSid)) {
+ if (!Objects.equals(accountSid, Twilio.accountSid)) {
127
Twilio.invalidate();
128
}
129
0 commit comments