This is an automated email from the ASF dual-hosted git repository.
jxue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git
The following commit(s) were added to refs/heads/master by this push:
new 688482c92 Fixes #2185 NullPointerException in ResourceUtil.java (#2186)
688482c92 is described below
commit 688482c92323711356f576d8a745f433ff05a3af
Author: William Morgan <[email protected]>
AuthorDate: Wed Nov 9 17:34:14 2022 -0500
Fixes #2185 NullPointerException in ResourceUtil.java (#2186)
Fixes NullPointerException in ResourceUtil.java that occurred due to
incorrect ordering of static class members.
---
.../src/main/java/org/apache/helix/webapp/resources/ResourceUtil.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git
a/helix-admin-webapp/src/main/java/org/apache/helix/webapp/resources/ResourceUtil.java
b/helix-admin-webapp/src/main/java/org/apache/helix/webapp/resources/ResourceUtil.java
index 9c32cfec8..f37fc3f39 100644
---
a/helix-admin-webapp/src/main/java/org/apache/helix/webapp/resources/ResourceUtil.java
+++
b/helix-admin-webapp/src/main/java/org/apache/helix/webapp/resources/ResourceUtil.java
@@ -45,9 +45,7 @@ import org.slf4j.LoggerFactory;
public class ResourceUtil {
private static final Logger LOG =
LoggerFactory.getLogger(ResourceUtil.class);
- private static final String EMPTY_ZNRECORD_STRING =
- objectToJson(ClusterRepresentationUtil.EMPTY_ZNRECORD);
- private static ObjectMapper mapper = new ObjectMapper();
+ private static final ObjectMapper mapper = new ObjectMapper();
/**
* Key enums for getting values from request
*/