first check for null-pointer problems,
such that one of the entites is not created yet.