Skip to content

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

Open
@WinterG26

Description

使用版本:

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 并留下地址 >

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions