Program: 153078
Project: 153078
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  View view=convertView;
  try {
    if (view == null) {
      view=inflater.inflate(R.layout.futaba_thread_row,null);
    }
    FutabaThread activity=(FutabaThread)getContext();
    FutabaStatus item=(FutabaStatus)items.get(position);
    if (item != null) {
      TextView title=(TextView)view.findViewById(R.id.title);
      title.setTextSize(StateMan.getDescFontSize(getContext()));
      TextView bottomtext=(TextView)view.findViewById(R.id.bottomtext);
      bottomtext.setTextSize(StateMan.getDescFontSize(getContext()));
      TextView text=(TextView)view.findViewById(R.id.maintext);
      bottomtext.setTextSize(StateMan.getMainFontSize(getContext()));
      if (FutabaStatus.isBlank(item)) {
        ImageView iv=(ImageView)view.findViewById(R.id.image);
        iv.setImageBitmap(null);
        text.setText("String_Node_Str");
        text.setGravity(Gravity.CENTER);
        title.setVisibility(View.GONE);
        bottomtext.setVisibility(View.GONE);
        bottomtext.setText("String_Node_Str");
        view.setBackgroundColor(Color.parseColor("String_Node_Str"));
        Button saveButton=(Button)view.findViewById(R.id.savebutton);
        saveButton.setVisibility(View.GONE);
      }
 else       if (FutabaStatus.isEndTime(item)) {
        ImageView iv=(ImageView)view.findViewById(R.id.image);
        iv.setImageBitmap(null);
        String text_html=item.text;
        CharSequence cs=Html.fromHtml(text_html);
        text.setText(cs);
        text.setGravity(Gravity.CENTER);
        title.setVisibility(View.GONE);
        bottomtext.setVisibility(View.GONE);
        bottomtext.setText("String_Node_Str");
        view.setBackgroundColor(Color.parseColor("String_Node_Str"));
        Button saveButton=(Button)view.findViewById(R.id.savebutton);
        saveButton.setVisibility(View.GONE);
      }
 else {
        String title_base=item.title;
        if (item.name != null) {
          title_base+="String_Node_Str" + item.name + "String_Node_Str";
          if (item.mailTo != null && !item.mailTo.equals("String_Node_Str")) {
            title_base+="String_Node_Str" + item.mailTo + "String_Node_Str";
          }
          if (item.imgURL != null) {
            File imgFile=new File(item.bigImgURL);
            title_base+="String_Node_Str" + imgFile.getName() + "String_Node_Str";
          }
          if (activity.currentSize != 0 && position >= activity.prevSize) {
            title_base+="String_Node_Str";
            if (position != 0) {
              title_base="String_Node_Str" + (position - 1) + "String_Node_Str"+ title_base;
            }
          }
 else {
            if (position != 0) {
              title_base="String_Node_Str" + position + "String_Node_Str"+ title_base;
            }
          }
        }
 else {
          if (position != 0) {
            title_base="String_Node_Str" + position + "String_Node_Str"+ title_base;
          }
        }
        CharSequence cs_title=Html.fromHtml(title_base);
        title.setText(cs_title);
        text.setTextSize(StateMan.getMainFontSize(getContext()));
        bottomtext.setTextSize(StateMan.getDescFontSize(getContext()));
        if (item.datestr != null) {
          bottomtext.setText(item.datestr + "String_Node_Str" + item.id);
        }
        if (position == 0) {
          view.setBackgroundColor(Color.rgb(255,255,238));
        }
 else {
          if (item.id != 0 && item.id == shioriPosition) {
            setShioriStatus(view);
          }
 else {
            view.setBackgroundColor(Color.rgb(240,224,214));
          }
        }
        text.setGravity(Gravity.LEFT);
        title.setVisibility(View.VISIBLE);
        bottomtext.setVisibility(View.VISIBLE);
        Bitmap bm=null;
        LinearLayout imageframe=(LinearLayout)view.findViewById(R.id.imageframe);
        Button saveButton=(Button)view.findViewById(R.id.savebutton);
        ImageView iv=(ImageView)view.findViewById(R.id.image);
        iv.setImageBitmap(bm);
        try {
          if (item.imgURL != null) {
            iv.setTag(item.bigImgURL);
            bm=Bitmap.createBitmap(item.width,item.height,Bitmap.Config.ALPHA_8);
            iv.setImageBitmap(bm);
            ImageGetTask task=new ImageGetTask(view);
            SharedPreferences preferences=PreferenceManager.getDefaultSharedPreferences(getContext());
            boolean enableSaveButton=preferences.getBoolean(getContext().getString(R.string.enablesavebutton),true);
            if (enableSaveButton) {
              saveButton.setVisibility(View.VISIBLE);
            }
 else {
              saveButton.setVisibility(View.GONE);
            }
            view.setLongClickable(true);
            task.execute(item.imgURL);
          }
 else {
            saveButton.setVisibility(View.GONE);
          }
        }
 catch (        Exception e) {
          FLog.d("String_Node_Str",e);
        }
        if (text != null) {
          String text_html=item.text;
          CharSequence cs=Html.fromHtml(text_html);
          text.setText(cs);
        }
      }
    }
  }
 catch (  Exception e) {
    FLog.d("String_Node_Str",e);
  }
  return view;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  View view=convertView;
  try {
    if (view == null) {
      view=inflater.inflate(R.layout.futaba_thread_row,null);
    }
    FutabaThread activity=(FutabaThread)getContext();
    FutabaStatus item=(FutabaStatus)items.get(position);
    if (item != null) {
      TextView title=(TextView)view.findViewById(R.id.title);
      title.setTextSize(StateMan.getDescFontSize(getContext()));
      TextView bottomtext=(TextView)view.findViewById(R.id.bottomtext);
      bottomtext.setTextSize(StateMan.getDescFontSize(getContext()));
      TextView text=(TextView)view.findViewById(R.id.maintext);
      bottomtext.setTextSize(StateMan.getMainFontSize(getContext()));
      if (FutabaStatus.isBlank(item)) {
        ImageView iv=(ImageView)view.findViewById(R.id.image);
        iv.setImageBitmap(null);
        text.setText("String_Node_Str");
        text.setGravity(Gravity.CENTER);
        title.setVisibility(View.GONE);
        bottomtext.setVisibility(View.GONE);
        bottomtext.setText("String_Node_Str");
        view.setBackgroundColor(Color.parseColor("String_Node_Str"));
        Button saveButton=(Button)view.findViewById(R.id.savebutton);
        saveButton.setVisibility(View.GONE);
      }
 else       if (FutabaStatus.isEndTime(item)) {
        ImageView iv=(ImageView)view.findViewById(R.id.image);
        iv.setImageBitmap(null);
        String text_html=item.text;
        CharSequence cs=Html.fromHtml(text_html);
        text.setText(cs);
        text.setGravity(Gravity.CENTER);
        title.setVisibility(View.GONE);
        bottomtext.setVisibility(View.GONE);
        bottomtext.setText("String_Node_Str");
        view.setBackgroundColor(Color.parseColor("String_Node_Str"));
        Button saveButton=(Button)view.findViewById(R.id.savebutton);
        saveButton.setVisibility(View.GONE);
      }
 else {
        String title_base=item.title;
        if (item.name != null) {
          title_base+="String_Node_Str" + item.name + "String_Node_Str";
          if (item.mailTo != null && !item.mailTo.equals("String_Node_Str")) {
            title_base+="String_Node_Str" + item.mailTo + "String_Node_Str";
          }
          if (item.imgURL != null) {
            File imgFile=new File(item.bigImgURL);
            title_base+="String_Node_Str" + imgFile.getName() + "String_Node_Str";
          }
          if (activity.currentSize != 0 && position >= activity.prevSize) {
            title_base+="String_Node_Str";
            if (position != 0) {
              title_base="String_Node_Str" + (position - 1) + "String_Node_Str"+ title_base;
            }
          }
 else {
            if (position != 0) {
              title_base="String_Node_Str" + position + "String_Node_Str"+ title_base;
            }
          }
        }
 else {
          if (position != 0) {
            title_base="String_Node_Str" + position + "String_Node_Str"+ title_base;
          }
          if (item.mailTo != null && !item.mailTo.equals("String_Node_Str")) {
            title_base+="String_Node_Str" + item.mailTo + "String_Node_Str";
          }
        }
        CharSequence cs_title=Html.fromHtml(title_base);
        title.setText(cs_title);
        text.setTextSize(StateMan.getMainFontSize(getContext()));
        bottomtext.setTextSize(StateMan.getDescFontSize(getContext()));
        if (item.datestr != null) {
          bottomtext.setText(item.datestr + "String_Node_Str" + item.id);
        }
        if (position == 0) {
          view.setBackgroundColor(Color.rgb(255,255,238));
        }
 else {
          if (item.id != 0 && item.id == shioriPosition) {
            setShioriStatus(view);
          }
 else {
            view.setBackgroundColor(Color.rgb(240,224,214));
          }
        }
        text.setGravity(Gravity.LEFT);
        title.setVisibility(View.VISIBLE);
        bottomtext.setVisibility(View.VISIBLE);
        Bitmap bm=null;
        LinearLayout imageframe=(LinearLayout)view.findViewById(R.id.imageframe);
        Button saveButton=(Button)view.findViewById(R.id.savebutton);
        ImageView iv=(ImageView)view.findViewById(R.id.image);
        iv.setImageBitmap(bm);
        try {
          if (item.imgURL != null) {
            iv.setTag(item.bigImgURL);
            bm=Bitmap.createBitmap(item.width,item.height,Bitmap.Config.ALPHA_8);
            iv.setImageBitmap(bm);
            ImageGetTask task=new ImageGetTask(view);
            SharedPreferences preferences=PreferenceManager.getDefaultSharedPreferences(getContext());
            boolean enableSaveButton=preferences.getBoolean(getContext().getString(R.string.enablesavebutton),true);
            if (enableSaveButton) {
              saveButton.setVisibility(View.VISIBLE);
            }
 else {
              saveButton.setVisibility(View.GONE);
            }
            view.setLongClickable(true);
            task.execute(item.imgURL);
          }
 else {
            saveButton.setVisibility(View.GONE);
          }
        }
 catch (        Exception e) {
          FLog.d("String_Node_Str",e);
        }
        if (text != null) {
          String text_html=item.text;
          CharSequence cs=Html.fromHtml(text_html);
          text.setText(cs);
        }
      }
    }
  }
 catch (  Exception e) {
    FLog.d("String_Node_Str",e);
  }
  return view;
}