in what case is enumClass null ?
Please add a comment about this