fix jackson null IllegalArgumentException. #2110

This commit is contained in:
hengyunabc
2022-02-21 16:45:46 +08:00
parent d41b254e37
commit b93ada7c4f
@@ -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) {