rubenada commented on code in PR #5213:
URL: https://github.com/apache/calcite/pull/5213#discussion_r4259928460


##########
mongodb/src/main/java/org/apache/calcite/adapter/mongodb/MongoEnumerator.java:
##########
@@ -162,13 +163,14 @@ static Function1<Document, Object> getter(
    * </ul>
    */
   @SuppressWarnings("JavaUtilDate")
-  private static Object convert(String fieldName, Object o, Class clazz) {
-    if (o == null) {
+  private static @Nullable Object convert(String fieldName, @Nullable Object o,
+      @Nullable Class clazz) {
+    if (o == null || clazz == null) {

Review Comment:
   (same as ElasticsearchEnumerators.java)
   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]

Reply via email to