Program: 106419
Project: 106419
Buggy source:
public IPAddressDaoImpl(){
  AllFieldsSearch=createSearchBuilder();
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getId(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getDataCenterId(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getAddress(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getVlanId(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getAllocatedToAccountId(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().isSourceNat(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getAssociatedWithNetworkId(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getAssociatedWithVmId(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().isOneToOneNat(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getSourceNetworkId(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getPhysicalNetworkId(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getVpcId(),Op.EQ);
  AllFieldsSearch.done();
  VlanDbIdSearchUnallocated=createSearchBuilder();
  VlanDbIdSearchUnallocated.and("String_Node_Str",VlanDbIdSearchUnallocated.entity().getAllocatedTime(),Op.NULL);
  VlanDbIdSearchUnallocated.and("String_Node_Str",VlanDbIdSearchUnallocated.entity().getVlanId(),Op.EQ);
  VlanDbIdSearchUnallocated.done();
  AllIpCount=createSearchBuilder(Integer.class);
  AllIpCount.select(null,Func.COUNT,AllIpCount.entity().getAddress());
  AllIpCount.and("String_Node_Str",AllIpCount.entity().getDataCenterId(),Op.EQ);
  AllIpCount.and("String_Node_Str",AllIpCount.entity().getVlanId(),Op.EQ);
  AllIpCount.done();
  AllocatedIpCount=createSearchBuilder(Integer.class);
  AllocatedIpCount.select(null,Func.COUNT,AllocatedIpCount.entity().getAddress());
  AllocatedIpCount.and("String_Node_Str",AllocatedIpCount.entity().getDataCenterId(),Op.EQ);
  AllocatedIpCount.and("String_Node_Str",AllocatedIpCount.entity().getVlanId(),Op.EQ);
  AllocatedIpCount.and("String_Node_Str",AllocatedIpCount.entity().getAllocatedTime(),Op.NNULL);
  AllocatedIpCount.done();
  AllIpCountForDashboard=createSearchBuilder(Integer.class);
  AllIpCountForDashboard.select(null,Func.COUNT,AllIpCountForDashboard.entity().getAddress());
  AllIpCountForDashboard.and("String_Node_Str",AllIpCountForDashboard.entity().getDataCenterId(),Op.EQ);
  AllIpCountForDashboard.and("String_Node_Str",AllIpCountForDashboard.entity().getState(),SearchCriteria.Op.NEQ);
  SearchBuilder<VlanVO> virtaulNetworkVlan=_vlanDao.createSearchBuilder();
  virtaulNetworkVlan.and("String_Node_Str",virtaulNetworkVlan.entity().getVlanType(),SearchCriteria.Op.EQ);
  AllIpCountForDashboard.join("String_Node_Str",virtaulNetworkVlan,virtaulNetworkVlan.entity().getId(),AllIpCountForDashboard.entity().getVlanId(),JoinBuilder.JoinType.INNER);
  virtaulNetworkVlan.done();
  AllIpCountForDashboard.done();
  AllocatedIpCountForAccount=createSearchBuilder(Long.class);
  AllocatedIpCountForAccount.select(null,Func.COUNT,AllocatedIpCountForAccount.entity().getAddress());
  AllocatedIpCountForAccount.and("String_Node_Str",AllocatedIpCountForAccount.entity().getAllocatedToAccountId(),Op.EQ);
  AllocatedIpCountForAccount.and("String_Node_Str",AllocatedIpCountForAccount.entity().getAllocatedTime(),Op.NNULL);
  AllocatedIpCountForAccount.and("String_Node_Str",AllocatedIpCountForAccount.entity().getAssociatedWithNetworkId(),Op.NNULL);
  AllocatedIpCountForAccount.done();
  CountFreePublicIps=createSearchBuilder(Long.class);
  CountFreePublicIps.select(null,Func.COUNT,null);
  CountFreePublicIps.and("String_Node_Str",CountFreePublicIps.entity().getState(),SearchCriteria.Op.EQ);
  CountFreePublicIps.and("String_Node_Str",CountFreePublicIps.entity().getSourceNetworkId(),SearchCriteria.Op.EQ);
  SearchBuilder<VlanVO> join=_vlanDao.createSearchBuilder();
  join.and("String_Node_Str",join.entity().getVlanType(),Op.EQ);
  CountFreePublicIps.join("String_Node_Str",join,CountFreePublicIps.entity().getVlanId(),join.entity().getId(),JoinBuilder.JoinType.INNER);
  CountFreePublicIps.done();
}

Fixed version (ground truth):
public IPAddressDaoImpl(){
}