Skip to content

Commit b6682f4

Browse files
author
廖长江
committed
fix: IllegalStateException
1 parent f789f30 commit b6682f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/cn/authing/sdk/java/model/ManagementClientOptions.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import cn.hutool.http.Method;
1010
import com.auth0.jwt.JWT;
1111
import com.auth0.jwt.interfaces.DecodedJWT;
12-
import com.sun.nio.sctp.IllegalReceiveException;
1312
import cn.authing.sdk.java.enums.LanguageEnum;
1413
import cn.authing.sdk.java.util.HttpUtils;
1514
import cn.authing.sdk.java.util.JsonUtils;
@@ -267,7 +266,7 @@ private void doLogin() {
267266
body, null, options.getTimeout());
268267
LoginResponse loginResponse = JsonUtils.deserialize(response, LoginResponse.class);
269268
if (loginResponse == null) {
270-
throw new IllegalReceiveException("response is null");
269+
throw new IllegalStateException("response is null");
271270
}
272271
if (loginResponse.statusCode != 200) {
273272
throw new RuntimeException(loginResponse.getMessage());

0 commit comments

Comments
 (0)