Program: 14382
Project: 14382
Buggy source:
private void startImg(SpannableStringBuilder text,Attributes attributes,WPHtml.ImageGetter img){
  if (ctx == null)   return;
  String src=attributes.getValue("String_Node_Str");
  Bitmap resizedBitmap=null;
  try {
    resizedBitmap=ImageUtils.getWPImageSpanThumbnailFromFilePath(ctx,src,mMaxImageWidth);
    if (resizedBitmap == null && src != null) {
      if (src.contains("String_Node_Str")) {
        resizedBitmap=BitmapFactory.decodeResource(ctx.getResources(),org.wordpress.android.editor.R.drawable.media_movieclip);
      }
 else {
        resizedBitmap=BitmapFactory.decodeResource(ctx.getResources(),R.drawable.media_image_placeholder);
      }
    }
  }
 catch (  OutOfMemoryError e) {
    CrashlyticsUtils.logException(e,CrashlyticsUtils.ExceptionType.SPECIFIC,AppLog.T.UTILS);
  }
  if (resizedBitmap != null) {
    int len=text.length();
    text.append("String_Node_Str");
    Uri curStream=Uri.parse(src);
    if (curStream == null) {
      return;
    }
    WPImageSpan is=new WPImageSpan(ctx,resizedBitmap,curStream);
    MediaFile mf=WordPress.wpDB.getMediaFile(src,post);
    if (mf != null) {
      is.setMediaFile(mf);
      is.setImageSource(curStream);
      text.setSpan(is,len,text.length(),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
      AlignmentSpan.Standard as=new AlignmentSpan.Standard(Layout.Alignment.ALIGN_CENTER);
      text.setSpan(as,text.getSpanStart(is),text.getSpanEnd(is),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
    }
  }
 else   if (post != null) {
    if (post.isLocalDraft()) {
      if (attributes != null) {
        text.append("String_Node_Str");
        for (int i=0; i < attributes.getLength(); i++) {
          String aName=attributes.getLocalName(i);
          if ("String_Node_Str".equals(aName))           aName=attributes.getQName(i);
          text.append("String_Node_Str");
          text.append(aName + "String_Node_Str" + attributes.getValue(i)+ "String_Node_Str");
        }
        text.append("String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
private void startImg(SpannableStringBuilder text,Attributes attributes,WPHtml.ImageGetter img){
  if (mContext == null)   return;
  String src=attributes.getValue("String_Node_Str");
  Bitmap resizedBitmap=null;
  try {
    resizedBitmap=ImageUtils.getWPImageSpanThumbnailFromFilePath(mContext,src,mMaxImageWidth);
    if (resizedBitmap == null && src != null) {
      if (src.contains("String_Node_Str")) {
        resizedBitmap=BitmapFactory.decodeResource(mContext.getResources(),org.wordpress.android.editor.R.drawable.media_movieclip);
      }
 else {
        resizedBitmap=BitmapFactory.decodeResource(mContext.getResources(),R.drawable.media_image_placeholder);
      }
    }
  }
 catch (  OutOfMemoryError e) {
    CrashlyticsUtils.logException(e,CrashlyticsUtils.ExceptionType.SPECIFIC,AppLog.T.UTILS);
  }
  if (resizedBitmap != null) {
    int len=text.length();
    text.append("String_Node_Str");
    Uri curStream=Uri.parse(src);
    if (curStream == null) {
      return;
    }
    WPImageSpan is=new WPImageSpan(mContext,resizedBitmap,curStream);
    MediaFile mf=WordPress.wpDB.getMediaFile(src,mPost);
    if (mf != null) {
      is.setMediaFile(mf);
      is.setImageSource(curStream);
      text.setSpan(is,len,text.length(),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
      AlignmentSpan.Standard as=new AlignmentSpan.Standard(Layout.Alignment.ALIGN_CENTER);
      text.setSpan(as,text.getSpanStart(is),text.getSpanEnd(is),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
    }
  }
 else   if (mPost != null) {
    if (mPost.isLocalDraft()) {
      if (attributes != null) {
        text.append("String_Node_Str");
        for (int i=0; i < attributes.getLength(); i++) {
          String aName=attributes.getLocalName(i);
          if ("String_Node_Str".equals(aName))           aName=attributes.getQName(i);
          text.append("String_Node_Str");
          text.append(aName + "String_Node_Str" + attributes.getValue(i)+ "String_Node_Str");
        }
        text.append("String_Node_Str");
      }
    }
  }
}