Program: 36026
Project: 36026
Buggy source:
@Subscribe public void onOnGetInvitationEvent(OnOneInvitationEvent e){
  mInvitation=e.get();
  if (mInvitation != null) {
    mHostControls.setVisibility(LinearLayout.GONE);
    mParticipantControls.setVisibility(LinearLayout.GONE);
    mStatusButton.setVisibility(Button.GONE);
    mAcceptButton.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT,1));
    mDeniedButton.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT,1));
    for (int i=0; i < mHostControls.getChildCount(); i++) {
      View view=mHostControls.getChildAt(i);
      view.setVisibility(View.GONE);
    }
    for (int i=0; i < mParticipantControls.getChildCount(); i++) {
      View view=mParticipantControls.getChildAt(i);
      view.setVisibility(View.GONE);
    }
    progressDialog.hide();
    Restaurant restaurant=mInvitation.getOrder().getRestaurant();
    if (restaurant.getPic() != null && !restaurant.getPic().isEmpty()) {
      Picasso.with(this).load("String_Node_Str" + restaurant.getPic()).placeholder(R.drawable.resto_big).into(mRestaurantCoverImageView);
    }
    mRestaurantName.setText(mInvitation.getOrder().getRestaurant().getName());
    String date=mInvitation.getOrder().getRequest_date().substring(0,10);
    date+="String_Node_Str" + mInvitation.getOrder().getStart_time() + "String_Node_Str"+ mInvitation.getOrder().getEnd_time()+ "String_Node_Str";
    mDateTextView.setText(date);
    Calendar now=Calendar.getInstance();
    Date orderNow=null;
    long l=now.getTimeInMillis();
    SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
    try {
      orderNow=sdf.parse(mInvitation.getOrder().getFormatDate());
    }
 catch (    ParseException e1) {
      e1.printStackTrace();
    }
    long l2=orderNow.getTime();
    int hour=now.get(Calendar.HOUR_OF_DAY);
    if (l < l2) {
      time=new CountDown(l2 - l,1000);
      time.start();
    }
 else {
      mCountDownTextView.setText("String_Node_Str");
    }
    mAddressTextView.setText(mInvitation.getOrder().getRestaurant().getAddress());
    int nbParticipantComming=0;
    List<User> userList=mInvitation.getParticipants();
    for (int i=0; i < userList.size(); ++i) {
      if (userList.get(i).getCust_id() == mUserID) {
        mThisUser=userList.get(i);
      }
      if (userList.get(i).getInv_status().equals("String_Node_Str")) {
        nbParticipantComming+=1;
      }
    }
    mFriendAdapter.update(userList);
    setListViewHeightBasedOnChildren(mInFriendsListView);
    List<Map<String,Object>> listT=new ArrayList<Map<String,Object>>();
    Map<String,Object> map;
    List<Dishe> disheList=mInvitation.getOrder().getDishes();
    for (int i=0; i < disheList.size(); ++i) {
      map=new HashMap<String,Object>();
      String disheName=disheList.get(i).getName();
      if (disheName.length() > 0) {
        disheName=String.valueOf(disheName.charAt(0)).toUpperCase() + disheName.subSequence(1,disheName.length());
      }
      map.put("String_Node_Str",disheName);
      map.put("String_Node_Str",+disheList.get(i).getPrice() + "String_Node_Str");
      map.put("String_Node_Str",disheList.get(i).getQuantity() + "String_Node_Str");
      listT.add(map);
    }
    SimpleAdapter dishAdapterTmp=new SimpleAdapter(this,listT,R.layout.dishe_item_list2,new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"},new int[]{R.id.DisheName2,R.id.DishePrice2,R.id.DisheNum2});
    mDishesListView.setAdapter(dishAdapterTmp);
    setListViewHeightBasedOnChildren(mDishesListView);
    mTotalPrice.setText(mInvitation.getOrder().getTotal_price() + "String_Node_Str");
    mPricePerParticipant.setText((mInvitation.getOrder().getTotal_price() / (nbParticipantComming)) + "String_Node_Str");
switch (mInvitation.getOrder().getStatus()) {
case 1:
{
        if (mThisUser.isIs_host()) {
          mHostControls.setVisibility(View.VISIBLE);
          for (int i=0; i < mHostControls.getChildCount(); i++) {
            mHostControls.getChildAt(i).setVisibility(View.VISIBLE);
          }
        }
 else {
          mParticipantControls.setVisibility(View.VISIBLE);
          for (int i=0; i < mParticipantControls.getChildCount(); i++) {
            mParticipantControls.getChildAt(i).setVisibility(View.VISIBLE);
          }
          Log.v(TAG,mThisUser.getInv_status() + "String_Node_Str");
          if (mThisUser.getInv_status().equals("String_Node_Str")) {
            mAcceptButton.setVisibility(View.GONE);
          }
 else           if (mThisUser.getInv_status().equals("String_Node_Str")) {
            mDeniedButton.setVisibility(View.GONE);
          }
        }
        break;
      }
case 2:
{
      mStatusButton.setText("String_Node_Str");
      mStatusButton.setVisibility(View.VISIBLE);
      break;
    }
case 3:
{
    mStatusButton.setText("String_Node_Str");
    mStatusButton.setBackgroundResource(R.color.green);
    mStatusButton.setVisibility(View.VISIBLE);
    break;
  }
case 4:
{
  mStatusButton.setText("String_Node_Str");
  mStatusButton.setBackgroundResource(R.color.red);
  mStatusButton.setVisibility(View.VISIBLE);
  break;
}
case 5:
{
mStatusButton.setText("String_Node_Str");
mStatusButton.setBackgroundResource(R.color.red);
mStatusButton.setVisibility(View.VISIBLE);
break;
}
case 7:
{
mStatusButton.setText("String_Node_Str");
mStatusButton.setVisibility(View.VISIBLE);
break;
}
}
}
 else {
Toast.makeText(this,"String_Node_Str",Toast.LENGTH_SHORT).show();
}
}

Fixed version (ground truth):
@Subscribe public void onOnGetInvitationEvent(OnOneInvitationEvent e){
  mInvitation=e.get();
  if (mInvitation != null) {
    mHostControls.setVisibility(LinearLayout.GONE);
    mParticipantControls.setVisibility(LinearLayout.GONE);
    mStatusButton.setVisibility(Button.GONE);
    mAcceptButton.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT,1));
    mDeniedButton.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT,1));
    for (int i=0; i < mHostControls.getChildCount(); i++) {
      View view=mHostControls.getChildAt(i);
      view.setVisibility(View.GONE);
    }
    for (int i=0; i < mParticipantControls.getChildCount(); i++) {
      View view=mParticipantControls.getChildAt(i);
      view.setVisibility(View.GONE);
    }
    progressDialog.hide();
    Restaurant restaurant=mInvitation.getOrder().getRestaurant();
    if (restaurant.getPic() != null && !restaurant.getPic().isEmpty()) {
      Picasso.with(this).load("String_Node_Str" + restaurant.getPic()).placeholder(R.drawable.resto_big).into(mRestaurantCoverImageView);
    }
    mRestaurantName.setText(mInvitation.getOrder().getRestaurant().getName());
    String date=mInvitation.getOrder().getFormatDate() + "String_Node_Str" + mInvitation.getOrder().getStart_time()+ "String_Node_Str";
    mDateTextView.setText(date);
    Date orderNow=null;
    long currentTimestamp=new Date().getTime();
    Log.v("String_Node_Str",currentTimestamp + "String_Node_Str");
    orderNow=mInvitation.getOrder().getrequestDate();
    long eventTimestamp=orderNow.getTime() + mInvitation.getOrder().getStart_time() * 1000 * 60* 60;
    Log.v("String_Node_Str",eventTimestamp + "String_Node_Str");
    if (currentTimestamp < eventTimestamp) {
      time=new CountDown(eventTimestamp - currentTimestamp,1000);
      time.start();
    }
 else {
      mCountDownTextView.setText("String_Node_Str");
    }
    mAddressTextView.setText(mInvitation.getOrder().getRestaurant().getAddress());
    int nbParticipantComming=0;
    List<User> userList=mInvitation.getParticipants();
    for (int i=0; i < userList.size(); ++i) {
      if (userList.get(i).getCust_id() == mUserID) {
        mThisUser=userList.get(i);
      }
      if (userList.get(i).getInv_status().equals("String_Node_Str")) {
        nbParticipantComming+=1;
      }
    }
    mFriendAdapter.update(userList);
    setListViewHeightBasedOnChildren(mInFriendsListView);
    List<Map<String,Object>> listT=new ArrayList<Map<String,Object>>();
    Map<String,Object> map;
    List<Dishe> disheList=mInvitation.getOrder().getDishes();
    for (int i=0; i < disheList.size(); ++i) {
      map=new HashMap<String,Object>();
      String disheName=disheList.get(i).getName();
      if (disheName.length() > 0) {
        disheName=String.valueOf(disheName.charAt(0)).toUpperCase() + disheName.subSequence(1,disheName.length());
      }
      map.put("String_Node_Str",disheName);
      map.put("String_Node_Str",+disheList.get(i).getPrice() + "String_Node_Str");
      map.put("String_Node_Str",disheList.get(i).getQuantity() + "String_Node_Str");
      listT.add(map);
    }
    SimpleAdapter dishAdapterTmp=new SimpleAdapter(this,listT,R.layout.dishe_item_list2,new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"},new int[]{R.id.DisheName2,R.id.DishePrice2,R.id.DisheNum2});
    mDishesListView.setAdapter(dishAdapterTmp);
    setListViewHeightBasedOnChildren(mDishesListView);
    mTotalPrice.setText(mInvitation.getOrder().getTotal_price() + "String_Node_Str");
    mPricePerParticipant.setText((mInvitation.getOrder().getTotal_price() / (nbParticipantComming)) + "String_Node_Str");
switch (mInvitation.getOrder().getStatus()) {
case 1:
{
        if (mThisUser.isIs_host()) {
          mHostControls.setVisibility(View.VISIBLE);
          for (int i=0; i < mHostControls.getChildCount(); i++) {
            mHostControls.getChildAt(i).setVisibility(View.VISIBLE);
          }
        }
 else {
          mParticipantControls.setVisibility(View.VISIBLE);
          for (int i=0; i < mParticipantControls.getChildCount(); i++) {
            mParticipantControls.getChildAt(i).setVisibility(View.VISIBLE);
          }
          Log.v(TAG,mThisUser.getInv_status() + "String_Node_Str");
          if (mThisUser.getInv_status().equals("String_Node_Str")) {
            mAcceptButton.setVisibility(View.GONE);
          }
 else           if (mThisUser.getInv_status().equals("String_Node_Str")) {
            mDeniedButton.setVisibility(View.GONE);
          }
        }
        break;
      }
case 2:
{
      mStatusButton.setText("String_Node_Str");
      mStatusButton.setVisibility(View.VISIBLE);
      break;
    }
case 3:
{
    mStatusButton.setText("String_Node_Str");
    mStatusButton.setBackgroundResource(R.color.green);
    mStatusButton.setVisibility(View.VISIBLE);
    break;
  }
case 4:
{
  mStatusButton.setText("String_Node_Str");
  mStatusButton.setBackgroundResource(R.color.red);
  mStatusButton.setVisibility(View.VISIBLE);
  break;
}
case 5:
{
mStatusButton.setText("String_Node_Str");
mStatusButton.setBackgroundResource(R.color.red);
mStatusButton.setVisibility(View.VISIBLE);
break;
}
case 7:
{
mStatusButton.setText("String_Node_Str");
mStatusButton.setVisibility(View.VISIBLE);
break;
}
}
}
 else {
Toast.makeText(this,"String_Node_Str",Toast.LENGTH_SHORT).show();
}
}