mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
fix jackson null IllegalArgumentException. #2110
This commit is contained in:
+3
@@ -37,6 +37,9 @@ public class RedisTunnelClusterStore implements TunnelClusterStore {
|
||||
try {
|
||||
ValueOperations<String, String> opsForValue = redisTemplate.opsForValue();
|
||||
String infoStr = opsForValue.get(prefix + agentId);
|
||||
if (infoStr == null) {
|
||||
throw new IllegalArgumentException("can not find info for agentId: " + agentId);
|
||||
}
|
||||
AgentClusterInfo info = MAPPER.readValue(infoStr, AgentClusterInfo.class);
|
||||
return info;
|
||||
} catch (Throwable e) {
|
||||
|
||||
Reference in New Issue
Block a user