Added object->pointer and pointer->object.
Made workaround to writing NULL (how could this happen?)