Added an error: when an object is used but it points to null