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] com.nonononoki.alovoa.entity.User.getDates is null exception #305

Open
peterzen opened this issue Sep 2, 2023 · 0 comments
Open

Comments

@peterzen
Copy link
Contributor

peterzen commented Sep 2, 2023

Describe the bug
When logged in using the admin user, the below exception is thrown:

2023-09-02 11:09:15 ERROR c.n.a.component.ExceptionHandler - java.lang.NullPointerException: Cannot invoke "com.nonononoki.alovoa.entity.user.UserDates.getNotificationDate()" because the return value of "com.nonononoki.alovoa.entity.User.getDates()" is null
	at com.nonononoki.alovoa.service.UserService.hasNewAlert(UserService.java:805)
	at com.nonononoki.alovoa.service.UserService.hasNewAlert(UserService.java:796)
	at com.nonononoki.alovoa.rest.UserController.newAlert(UserController.java:240)
	at jdk.internal.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)

To Reproduce
Steps to reproduce the behavior:

  1. Log in with admin user/key
  2. Observer log

Expected behavior
No exception thrown

Desktop (please complete the following information):

  • Any device

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

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