PickBas commented on code in PR #3891:
URL: https://github.com/apache/eventmesh/pull/3891#discussion_r1189950202


##########
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/RegistryHandler.java:
##########
@@ -85,33 +84,42 @@ void get(HttpExchange httpExchange) throws IOException {
                 getRegistryResponseList.add(getRegistryResponse);
             }
             
getRegistryResponseList.sort(Comparator.comparing(GetRegistryResponse::getEventMeshClusterName));
-
             String result = JsonUtils.toJSONString(getRegistryResponseList);
-            httpExchange.sendResponseHeaders(200, 
result.getBytes(Constants.DEFAULT_CHARSET).length);
+            httpExchange.sendResponseHeaders(
+                200,
+                
Objects.requireNonNull(result).getBytes(Constants.DEFAULT_CHARSET).length
+            );

Review Comment:
   @mxsm Fixed.



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