when I try to access a historicized cache parameter and this has been canceled for some reason returns null. Obviously this object is essential and causes a NullPointer.
The cache can be canceled for various reasons (ex: logout ..) .. but I need to handle these errors.
The object in question can not be recovered from DB because it is not present.
So I would need to understand if there is a pattern to be applied that allows you to manage these problems.
Aucun commentaire:
Enregistrer un commentaire