mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-06-28 13:34:18 +08:00
fix: 在 SSO 模式三中 ticket 校验地址配错时,会出现 NPE 的问题
This commit is contained in:
parent
e7da43baa6
commit
9469b15fd6
@ -443,9 +443,9 @@ public class SaSsoProcessor {
|
||||
// 发起请求
|
||||
String checkUrl = ssoTemplate.buildCheckTicketUrl(ticket, ssoLogoutCall);
|
||||
SaResult result = ssoTemplate.request(checkUrl);
|
||||
|
||||
|
||||
// 校验
|
||||
if(result.getCode() == SaResult.CODE_SUCCESS) {
|
||||
if(result.getCode() != null && result.getCode() == SaResult.CODE_SUCCESS) {
|
||||
return result.getData();
|
||||
} else {
|
||||
// 将 sso-server 回应的消息作为异常抛出
|
||||
|
Loading…
Reference in New Issue
Block a user