Closed jildertviet closed 7 months ago
When an Event is deleted, it should set this pointer to null. Also: when a new Event is added, make sure it is the only one pointing to this. (Otherwise, Event A may set the pointer to null, when B is newer and still alive)
Don't use lastAdded at all? Only access JEvents via their ID.
It's not found anywhere in the code, so only lastAddedID is used, which is OK.
When an Event is deleted, it should set this pointer to null. Also: when a new Event is added, make sure it is the only one pointing to this. (Otherwise, Event A may set the pointer to null, when B is newer and still alive)