Program: 106303
Project: 106303
Buggy source:
@Override public VmwareHypervisorHost getHyperHost(VmwareContext context,Command cmd){
  String guid=cmd.getContextParam("String_Node_Str");
  assert(guid != null);
  String[] tokens=guid.split("String_Node_Str");
  assert(tokens != null && tokens.length == 2);
  ManagedObjectReference morHyperHost=new ManagedObjectReference();
  String[] hostTokens=tokens[0].split("String_Node_Str");
  if (hostTokens == null || hostTokens.length != 2) {
    s_logger.error("String_Node_Str");
    return null;
  }
  morHyperHost.setType(hostTokens[0]);
  morHyperHost.setValue(hostTokens[1]);
  if (morHyperHost.getProtocol().equalsIgnoreCase("String_Node_Str")) {
    HostMO hostMo=new HostMO(context,morHyperHost);
    try {
      ManagedObjectReference mor=hostMo.getHyperHostCluster();
      ClusterMO clusterMo=new ClusterMO(hostMo.getContext(),mor);
      List<Pair<ManagedObjectReference,String>> hostsInCluster=clusterMo.getClusterHosts();
      for (      Pair<ManagedObjectReference,String> hostPair : hostsInCluster) {
        HostMO hostIteratorMo=new HostMO(hostMo.getContext(),hostPair.first());
        VmwareHypervisorHostNetworkSummary netSummary=hostIteratorMo.getHyperHostNetworkSummary(hostIteratorMo.getHostType() == VmwareHostType.ESXi ? cmd.getContextParam("String_Node_Str") : cmd.getContextParam("String_Node_Str"));
        _resource.ensureOutgoingRuleForAddress(netSummary.getHostIp());
        s_logger.info("String_Node_Str" + netSummary.getHostIp());
      }
    }
 catch (    Throwable e) {
      s_logger.warn("String_Node_Str" + e.toString() + "String_Node_Str"+ hostTokens[0]+ "String_Node_Str"+ hostTokens[1]);
    }
    return hostMo;
  }
  assert(false);
  return new ClusterMO(context,morHyperHost);
}

Fixed version (ground truth):
@Override public VmwareHypervisorHost getHyperHost(VmwareContext context,Command cmd){
  String guid=cmd.getContextParam("String_Node_Str");
  assert(guid != null);
  String[] tokens=guid.split("String_Node_Str");
  assert(tokens != null && tokens.length == 2);
  ManagedObjectReference morHyperHost=new ManagedObjectReference();
  String[] hostTokens=tokens[0].split("String_Node_Str");
  if (hostTokens == null || hostTokens.length != 2) {
    s_logger.error("String_Node_Str");
    return null;
  }
  morHyperHost.setType(hostTokens[0]);
  morHyperHost.setValue(hostTokens[1]);
  if (morHyperHost.getType().equalsIgnoreCase("String_Node_Str")) {
    HostMO hostMo=new HostMO(context,morHyperHost);
    try {
      ManagedObjectReference mor=hostMo.getHyperHostCluster();
      ClusterMO clusterMo=new ClusterMO(hostMo.getContext(),mor);
      List<Pair<ManagedObjectReference,String>> hostsInCluster=clusterMo.getClusterHosts();
      for (      Pair<ManagedObjectReference,String> hostPair : hostsInCluster) {
        HostMO hostIteratorMo=new HostMO(hostMo.getContext(),hostPair.first());
        VmwareHypervisorHostNetworkSummary netSummary=hostIteratorMo.getHyperHostNetworkSummary(hostIteratorMo.getHostType() == VmwareHostType.ESXi ? cmd.getContextParam("String_Node_Str") : cmd.getContextParam("String_Node_Str"));
        _resource.ensureOutgoingRuleForAddress(netSummary.getHostIp());
        s_logger.info("String_Node_Str" + netSummary.getHostIp());
      }
    }
 catch (    Throwable e) {
      s_logger.warn("String_Node_Str" + e.toString() + "String_Node_Str"+ hostTokens[0]+ "String_Node_Str"+ hostTokens[1]);
    }
    return hostMo;
  }
  assert(false);
  return new ClusterMO(context,morHyperHost);
}