committing null check when no contact is selected