Program: 155361
Project: 155361
Buggy source:
@Override public PhotoDetail get(String id){
  HashMap<String,String> paramMap=new HashMap<String,String>();
  paramMap.put("String_Node_Str",id);
  paramMap.put("String_Node_Str",TYPE_PHOTO);
  HashMap<String,Object> articlePhotoInfo=articleDao.getArticlePhoto(paramMap);
  if (articlePhotoInfo != null && !articlePhotoInfo.isEmpty()) {
    PhotoDetail photoDetail=new PhotoDetail((Long)articlePhotoInfo.get("String_Node_Str"));
    HashMap<String,Object> userInfo=new HashMap<String,Object>();
    userInfo.put("String_Node_Str",articlePhotoInfo.get("String_Node_Str"));
    userInfo.put("String_Node_Str",articlePhotoInfo.get("String_Node_Str"));
    userInfo.put("String_Node_Str",looahAPIConfig.LOOAH_DOMAIN + "String_Node_Str");
    if (TYPE_LOOAH_P.equals(articlePhotoInfo.get("String_Node_Str").toString())) {
      if (articlePhotoInfo.get("String_Node_Str") != null && !"String_Node_Str".equals(articlePhotoInfo.get("String_Node_Str").toString())) {
        userInfo.put("String_Node_Str",looahAPIConfig.LOOAH_DOMAIN + "String_Node_Str" + looahCommon.getDirSeparate((Long)articlePhotoInfo.get("String_Node_Str"))+ "String_Node_Str"+ articlePhotoInfo.get("String_Node_Str"));
      }
    }
 else {
      if (articlePhotoInfo.get("String_Node_Str") != null && !"String_Node_Str".equals(articlePhotoInfo.get("String_Node_Str").toString())) {
        userInfo.put("String_Node_Str",articlePhotoInfo.get("String_Node_Str"));
      }
    }
    HashMap<String,Object> imageInfo=new HashMap<String,Object>();
    long imageId=(Long)articlePhotoInfo.get("String_Node_Str");
    String contentType=(String)articlePhotoInfo.get("String_Node_Str");
    imageInfo.put("String_Node_Str",imageId);
    imageInfo.put("String_Node_Str",articlePhotoInfo.get("String_Node_Str"));
    imageInfo.put("String_Node_Str",articlePhotoInfo.get("String_Node_Str"));
    imageInfo.put("String_Node_Str",contentType);
    imageInfo.put("String_Node_Str",looahCommon.makeImageUrl(imageId,ORIGINAL_SIZE));
    imageInfo.put("String_Node_Str",looahCommon.makeImageUrl(imageId,FEATURE_SIZE));
    imageInfo.put("String_Node_Str",looahCommon.makeImageUrl(imageId,THUMBNAIL_SIZE));
    imageInfo.put("String_Node_Str",looahCommon.makeImageUrl(imageId,TWICE_THUMBNAIL_SIZE));
    photoDetail.setId((Long)articlePhotoInfo.get("String_Node_Str"));
    photoDetail.setLanguage(articlePhotoInfo.get("String_Node_Str").toString());
    photoDetail.setLangSetId((Integer)articlePhotoInfo.get("String_Node_Str"));
    photoDetail.setTitle(articlePhotoInfo.get("String_Node_Str").toString());
    photoDetail.setCreatedTimeStamp((Long)articlePhotoInfo.get("String_Node_Str"));
    photoDetail.setXcompleted(articlePhotoInfo.get("String_Node_Str").equals(1));
    String content=articlePhotoInfo.get("String_Node_Str").toString();
    if (articlePhotoInfo.get("String_Node_Str") != null) {
      content=articlePhotoInfo.get("String_Node_Str").toString();
    }
    photoDetail.setContent(content);
    photoDetail.setImage(imageInfo);
    photoDetail.setUser(userInfo);
    return photoDetail;
  }
  return new PhotoDetail(0);
}

Fixed version (ground truth):
@Override public PhotoDetail get(String id){
  HashMap<String,String> paramMap=new HashMap<String,String>();
  paramMap.put("String_Node_Str",id);
  paramMap.put("String_Node_Str",TYPE_PHOTO);
  HashMap<String,Object> articlePhotoInfo=articleDao.getArticlePhoto(paramMap);
  if (articlePhotoInfo != null && !articlePhotoInfo.isEmpty()) {
    PhotoDetail photoDetail=new PhotoDetail((Long)articlePhotoInfo.get("String_Node_Str"));
    HashMap<String,Object> userInfo=new HashMap<String,Object>();
    userInfo.put("String_Node_Str",articlePhotoInfo.get("String_Node_Str"));
    userInfo.put("String_Node_Str",articlePhotoInfo.get("String_Node_Str"));
    userInfo.put("String_Node_Str",looahAPIConfig.LOOAH_DOMAIN + "String_Node_Str");
    if (TYPE_LOOAH_P.equals(articlePhotoInfo.get("String_Node_Str").toString())) {
      if (articlePhotoInfo.get("String_Node_Str") != null && !"String_Node_Str".equals(articlePhotoInfo.get("String_Node_Str").toString())) {
        userInfo.put("String_Node_Str",looahAPIConfig.LOOAH_DOMAIN + "String_Node_Str" + looahCommon.getDirSeparate((Long)articlePhotoInfo.get("String_Node_Str"))+ "String_Node_Str"+ articlePhotoInfo.get("String_Node_Str"));
      }
    }
 else {
      if (articlePhotoInfo.get("String_Node_Str") != null && !"String_Node_Str".equals(articlePhotoInfo.get("String_Node_Str").toString())) {
        userInfo.put("String_Node_Str",articlePhotoInfo.get("String_Node_Str"));
      }
    }
    HashMap<String,Object> imageInfo=new HashMap<String,Object>();
    long imageId=(Long)articlePhotoInfo.get("String_Node_Str");
    String contentType=(String)articlePhotoInfo.get("String_Node_Str");
    imageInfo.put("String_Node_Str",imageId);
    imageInfo.put("String_Node_Str",articlePhotoInfo.get("String_Node_Str"));
    imageInfo.put("String_Node_Str",articlePhotoInfo.get("String_Node_Str"));
    imageInfo.put("String_Node_Str",contentType);
    imageInfo.put("String_Node_Str",looahCommon.makeImageUrl(imageId,ORIGINAL_SIZE));
    imageInfo.put("String_Node_Str",looahCommon.makeImageUrl(imageId,FEATURE_SIZE));
    imageInfo.put("String_Node_Str",looahCommon.makeImageUrl(imageId,THUMBNAIL_SIZE));
    imageInfo.put("String_Node_Str",looahCommon.makeImageUrl(imageId,TWICE_THUMBNAIL_SIZE));
    photoDetail.setId((Long)articlePhotoInfo.get("String_Node_Str"));
    photoDetail.setLanguage(articlePhotoInfo.get("String_Node_Str").toString());
    photoDetail.setLangSetId((Integer)articlePhotoInfo.get("String_Node_Str"));
    photoDetail.setTitle(articlePhotoInfo.get("String_Node_Str").toString());
    photoDetail.setCreatedTimeStamp((Long)articlePhotoInfo.get("String_Node_Str"));
    photoDetail.setXcompleted(articlePhotoInfo.get("String_Node_Str").toString().equals("String_Node_Str"));
    String content=articlePhotoInfo.get("String_Node_Str").toString();
    if (articlePhotoInfo.get("String_Node_Str") != null) {
      content=articlePhotoInfo.get("String_Node_Str").toString();
    }
    photoDetail.setContent(content);
    photoDetail.setImage(imageInfo);
    photoDetail.setUser(userInfo);
    return photoDetail;
  }
  return new PhotoDetail(0);
}