Program: 155450
Project: 155450
Buggy source:
protected void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
  String employeeID=(String)request.getParameter("String_Node_Str");
  System.out.println(employeeID);
  ArrayList<String> landline=new ArrayList<String>();
  ArrayList<String> mobile=new ArrayList<String>();
  ArrayList<String> emailad=new ArrayList<String>();
  try {
    Employee emp=ManagerBin.pManager.getEmployee(Integer.parseInt(employeeID));
    if (emp != null) {
      p=emp.getPerson();
      request.setAttribute("String_Node_Str",p.getTitle());
      request.setAttribute("String_Node_Str",p.getName());
      request.setAttribute("String_Node_Str",emp.getDesignation());
      request.setAttribute("String_Node_Str",emp.getEmployeeNumber());
      request.setAttribute("String_Node_Str",emp.getDivisionOffice());
      List<Contact> contact=ManagerBin.getInstance().cManager.getAllContactsByPerson(p.getId());
      for (int i=0; contact != null && i < contact.size(); i++) {
        if (contact.get(i).getType().equals(ContactType.LANDLINE)) {
          landline.add(contact.get(i).getData());
        }
        if (contact.get(i).getType().equals(ContactType.EMAIL)) {
          emailad.add(contact.get(i).getData());
        }
        if (contact.get(i).getType().equals(ContactType.MOBILE)) {
          mobile.add(contact.get(i).getData());
        }
      }
      if (mobile.isEmpty()) {
        System.out.println("String_Node_Str");
      }
      if (landline.isEmpty()) {
        System.out.println("String_Node_Str");
      }
      request.setAttribute("String_Node_Str",mobile);
      request.setAttribute("String_Node_Str",emailad);
      request.setAttribute("String_Node_Str",landline);
    }
    RequestDispatcher view=request.getRequestDispatcher("String_Node_Str");
    view.forward(request,response);
  }
 catch (  NumberFormatException e) {
    e.printStackTrace();
  }
catch (  TransactionException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
protected void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
  String employeeID=(String)request.getParameter("String_Node_Str");
  System.out.println(employeeID);
  ArrayList<String> landline=new ArrayList<String>();
  ArrayList<String> mobile=new ArrayList<String>();
  ArrayList<String> emailad=new ArrayList<String>();
  try {
    Employee emp=ManagerBin.pManager.getEmployee(Integer.parseInt(employeeID));
    if (emp != null) {
      p=emp.getPerson();
      request.setAttribute("String_Node_Str",p.getTitle());
      request.setAttribute("String_Node_Str",p.getName());
      request.setAttribute("String_Node_Str",emp.getDesignation());
      request.setAttribute("String_Node_Str",emp.getEmployeeNumber());
      request.setAttribute("String_Node_Str",emp.getDivisionOffice());
      Set<Contact> contacts=p.getContacts();
      for (      Contact contact : contacts) {
        if (contact.getType().equals(ContactType.LANDLINE))         landline.add(contact.getData());
        if (contact.getType().equals(ContactType.EMAIL))         emailad.add(contact.getData());
        if (contact.getType().equals(ContactType.MOBILE))         mobile.add(contact.getData());
      }
      if (mobile.isEmpty()) {
        System.out.println("String_Node_Str");
      }
      if (landline.isEmpty()) {
        System.out.println("String_Node_Str");
      }
      request.setAttribute("String_Node_Str",mobile);
      request.setAttribute("String_Node_Str",emailad);
      request.setAttribute("String_Node_Str",landline);
    }
    request.getRequestDispatcher("String_Node_Str").forward(request,response);
  }
 catch (  NumberFormatException e) {
    e.printStackTrace();
  }
catch (  TransactionException e) {
    e.printStackTrace();
  }
}