Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Call to member function delete() on null #5

Open
Robert-Hucks opened this issue Feb 14, 2019 · 0 comments
Open

Call to member function delete() on null #5

Robert-Hucks opened this issue Feb 14, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@Robert-Hucks
Copy link
Owner

There is an issue that occurs whenever a model is deleted from the database and therefore is unretrievable for SelfDestruct. It tries to fetch the model and call delete() on it, but the model fails to return and this leads to the function call failing also, resulting in a huge amount of error logs.

A check needs to be put in place to simply remove the SelfDestruct record if the object it is trying to delete() no longer exists.

@Robert-Hucks Robert-Hucks added the bug Something isn't working label Feb 14, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant