Program: 107299
Project: 107299
Buggy source:
public static RouterOperationResultObject composeResultObject(ManagementServer managementServer,VirtualRouter router){
  RouterOperationResultObject resultObject=new RouterOperationResultObject();
  resultObject.setId(router.getId());
  resultObject.setZoneId(router.getDataCenterId());
  resultObject.setZoneName(managementServer.findDataCenterById(router.getDataCenterId()).getName());
  resultObject.setDns1(router.getDns1());
  resultObject.setDns2(router.getDns2());
  resultObject.setNetworkDomain(router.getDomain());
  resultObject.setGateway(router.getGateway());
  resultObject.setName(router.getHostName());
  resultObject.setPodId(router.getPodId());
  resultObject.setPrivateIp(router.getPrivateIpAddress());
  resultObject.setPrivateMacAddress(router.getPrivateMacAddress());
  resultObject.setPrivateNetMask(router.getPrivateNetmask());
  resultObject.setPublicIp(router.getPublicIpAddress());
  resultObject.setPublicMacAddress(router.getPublicMacAddress());
  resultObject.setPublicNetMask(router.getPrivateNetmask());
  resultObject.setGuestIp(router.getGuestIpAddress());
  resultObject.setGuestMacAddress(router.getGuestMacAddress());
  resultObject.setTemplateId(router.getTemplateId());
  resultObject.setCreated(router.getCreated());
  resultObject.setGuestNetmask(router.getGuestNetmask());
  if (router.getHostId() != null) {
    resultObject.setHostname(managementServer.getHostBy(router.getHostId()).getName());
    resultObject.setHostId(router.getHostId());
  }
  Account acct=managementServer.findAccountById(Long.valueOf(router.getAccountId()));
  if (acct != null) {
    resultObject.setAccount(acct.getAccountName());
    resultObject.setDomainId(acct.getDomainId());
  }
  if (router.getState() != null)   resultObject.setState(router.getState().toString());
  return resultObject;
}

Fixed version (ground truth):
public static RouterOperationResultObject composeResultObject(ManagementServer managementServer,VirtualRouter router){
  RouterOperationResultObject resultObject=new RouterOperationResultObject();
  resultObject.setId(router.getId());
  resultObject.setZoneId(router.getDataCenterId());
  resultObject.setZoneName(managementServer.findDataCenterById(router.getDataCenterId()).getName());
  resultObject.setDns1(router.getDns1());
  resultObject.setDns2(router.getDns2());
  resultObject.setNetworkDomain(router.getDomain());
  resultObject.setGateway(router.getGateway());
  resultObject.setName(router.getName());
  resultObject.setPodId(router.getPodId());
  resultObject.setPrivateIp(router.getPrivateIpAddress());
  resultObject.setPrivateMacAddress(router.getPrivateMacAddress());
  resultObject.setPrivateNetMask(router.getPrivateNetmask());
  resultObject.setPublicIp(router.getPublicIpAddress());
  resultObject.setPublicMacAddress(router.getPublicMacAddress());
  resultObject.setPublicNetMask(router.getPrivateNetmask());
  resultObject.setGuestIp(router.getGuestIpAddress());
  resultObject.setGuestMacAddress(router.getGuestMacAddress());
  resultObject.setTemplateId(router.getTemplateId());
  resultObject.setCreated(router.getCreated());
  resultObject.setGuestNetmask(router.getGuestNetmask());
  if (router.getHostId() != null) {
    resultObject.setHostname(managementServer.getHostBy(router.getHostId()).getName());
    resultObject.setHostId(router.getHostId());
  }
  Account acct=managementServer.findAccountById(Long.valueOf(router.getAccountId()));
  if (acct != null) {
    resultObject.setAccount(acct.getAccountName());
    resultObject.setDomainId(acct.getDomainId());
  }
  if (router.getState() != null)   resultObject.setState(router.getState().toString());
  return resultObject;
}