risdenk commented on code in PR #825:
URL: https://github.com/apache/solr/pull/825#discussion_r862044871


##########
solr/solrj/src/java/org/apache/solr/common/util/Utils.java:
##########
@@ -302,10 +302,16 @@ public static byte[] toUTF8(CharArr out) {
   }
 
   public static Object fromJSON(byte[] utf8) {
+    if (utf8 == null || utf8.length == 0) {
+      return Collections.emptyMap();
+    }

Review Comment:
   Need in both fromJSON methods since utf8.length returned NPE without this.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to