concerns
The attribute function is calling the attribute function ObjectCount of the object, the pointer is pointing to. If the pointer is NoValue, the call of the attribute function produces an error.