I think the NotNull validation constraint should be added in the getter so that the appropriate error is thrown.