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

bug: NullPointerException #150

Closed
cmgyqjj opened this issue Sep 18, 2024 · 0 comments · Fixed by #153
Closed

bug: NullPointerException #150

cmgyqjj opened this issue Sep 18, 2024 · 0 comments · Fixed by #153
Assignees
Milestone

Comments

@cmgyqjj
Copy link
Contributor

cmgyqjj commented Sep 18, 2024

Bug describion
In the case of login failure, such as when the user ID is not registered, the offLine method will be called upon exiting the client. Within this method, an attempt is made to retrieve the login flag based on the UserId. However, since the login has already failed, the operation to obtain the flag will result in a NullPointerException (NPE).

Can I submit a Pull Request (PR) to add an online check in the logout process to prevent a NullPointerException (NPE)?

Reproduction
Reproduction Steps:

  1. Start the server and route services.
  2. Launch the client service with an unregistered ID and attempt to log in.
  3. Exit the client service.

Expected results
If the user is not logged in, the current user logout process will be skipped directly.

screenshot
image

@crossoverJie crossoverJie added this to the 
v2.0.0 milestone Sep 19, 2024
@crossoverJie crossoverJie linked a pull request Sep 21, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants