Exception consistency check for setting an annotation to null value