mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-24 20:26:16 +10:00
[강운덕] [LUCYSUS-1744] null체크 로직 강화.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@2818 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -25,7 +25,10 @@ public class ServerInstance implements Comparable<ServerInstance>, Mergeable<Ser
|
||||
private ObjectMapper objectMapper = new ObjectMapper();
|
||||
|
||||
public ServerInstance(AgentInfoBo agentInfo, ResponseHistogram histogram) {
|
||||
this.name = agentInfo.getAgentId();
|
||||
if (agentInfo == null) {
|
||||
throw new NullPointerException("agentInfo must not be null");
|
||||
}
|
||||
this.name = agentInfo.getAgentId();
|
||||
this.serviceType = agentInfo.getServiceType();
|
||||
this.id = name;// + serviceType;
|
||||
this.agentInfo = agentInfo;
|
||||
|
||||
Reference in New Issue
Block a user