[강운덕] [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:
Woonduk Kang
2013-11-06 10:27:46 +00:00
parent 8c559aa4ee
commit ef5bc067c4
@@ -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;