Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新至1.40后StpUtil.setTokenValue报错 #737

Open
WinterG26 opened this issue Feb 12, 2025 · 0 comments
Open

更新至1.40后StpUtil.setTokenValue报错 #737

WinterG26 opened this issue Feb 12, 2025 · 0 comments

Comments

@WinterG26
Copy link

使用版本:

1.40.0

报错信息:

java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because the return value of "cn.dev33.satoken.stp.SaLoginModel.getIsWriteHeader()" is null
        at cn.dev33.satoken.stp.StpLogic.setTokenValue(StpLogic.java:207)
        at cn.dev33.satoken.stp.StpLogic.setTokenValue(StpLogic.java:172)
        at cn.dev33.satoken.stp.StpUtil.setTokenValue(StpUtil.java:103)

希望结果:

正确的手动给当前会话设置Token值

复现步骤:

在SpringBoot的Controller中调用该方法

< 备注:如果复现步骤比较复杂,请将 demo 上传到 gitee 并留下地址 >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant