I'm using some objects in a web application - they are "saved" in the session and periodically removed. When an object has been removed if I try and reference a class method of the object that no longer exists I get a nullrefernce exception that I handle accordingly - Is there an easier way of doing this, for example checking that the instance of the object is nothing rather than handling the exception when one of its methods is called?
Any help appreciated.
Any help appreciated.