rubenada commented on code in PR #5213:
URL: https://github.com/apache/calcite/pull/5213#discussion_r4259910848
##########
elasticsearch/src/main/java/org/apache/calcite/adapter/elasticsearch/ElasticsearchEnumerators.java:
##########
@@ -120,13 +122,13 @@ static Function1<ElasticsearchJson.SearchHit, Object>
getter(
}
@SuppressWarnings("JavaUtilDate")
- private static Object convert(Object o, Class clazz) {
- if (o == null) {
+ private static @Nullable Object convert(@Nullable Object o, @Nullable Class
clazz) {
+ if (o == null || clazz == null) {
Review Comment:
IIANM previously a null Class would fail, but now it would silently return
null, is this intended?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]