Skip to content

Authentication login() has no null checks #39

@aliAljaffer

Description

@aliAljaffer

The login() method will throw NullPointerException if username doesn't exist or if password is null.

Location: src/java/Authentication.java line 24

Steps to reproduce:

Authentication auth = new Authentication();
auth.login("nonexistent", "pass"); // NullPointerException

Add proper null validation before comparing passwords.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authenticationAuthentication and authorization issuesbugSomething isn't workingjavaJava code issuespriority: highHigh priority issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions