I am looking at some code (Delphi 7) with following check is at the top of every method call for a specific object:
if not Assigned(self) then
raise Exception.CreateRes(@sAbstractError);
{ Real code for this method}
I guess that this would prevent me from trying to call a method on a null object pointer. But I would get an exception as soon as I tried to access member data in that case anyway, right?
Is this some type of standard that I have never seen before? The object in question derives from TPersistent.