fix jackson null IllegalArgumentException. #2110

pull/1871/merge
hengyunabc 3 years ago
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) {

Loading…
Cancel
Save