馃悰 [Bug] Nullpointer error in notifications menu if resource was deleted
Created by: Tirokk
Authored by roschaefer Closed
馃悰 Bugreport
Apparently the notification menu crashes when comment.post.id
of the notification is null.
Steps to reproduce the behavior
- Run
yarn run db:reset && yarn run db:seed
in folder/backend
- Login in as
user@example.org
- Go to your profile
- Delete the first post
- Refresh the page
- See this:
Expected behavior
Notifications should be deleted along with the deleted post. If the notification points to nirvana, it should not crash.
Version & Environment
robert@e480 ~/D/h/Human-Connection> chromium --version
Chromium 76.0.3809.100 Arch Linux
robert@e480 ~/D/h/Human-Connection> cat /proc/version
Linux version 5.2.8-arch1-1-ARCH (builduser@heftig-63215) (gcc version 9.1.0 (GCC)) #1 SMP PREEMPT Fri Aug 9 21:36:07 UTC 2019
@Tirokk FYI