Skip to content

空指针异常:return getService(captchaVO.getCaptchaType()).check(captchaVO); #201

@gedyzhang

Description

@gedyzhang

hi,不知道是否可以优化一下,java.lang.NullPointerException: null at com.anji.captcha.service.impl.DefaultCaptchaServiceImpl.check(DefaultCaptchaServiceImpl.java:74)
当CaptchaType不是指定的验证码类型:(clickWord,blockPuzzle),会抛出NullPointerException异常,这种情况在安全测试的时候很常见

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions