<When I delete a parent in a one to many relations...
# stackoverflow
r
When I delete a parent in a one to many relationship using ROOM database and get back to the fragment that has childs THE APP CRASHES

enter image description here▾

2023-01-21 014714.636 19192-19256/com.example.doeasy E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1 Process: com.example.doeasy, PID: 19192 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.doeasy.database.entities.Project.getProjectColor()' on a null object reference at...