Program: 155350
Project: 155350
Buggy source:
@SuppressWarnings("String_Node_Str") public List<PostInfo> getPosts(PostFilterParameters filterParameters,IWContext iwc){
  Collection<PostEntity> postEntities=null;
  postEntities=this.postDao.getPosts(filterParameters.getCreators(),filterParameters.getReceivers(),filterParameters.getTypes(),filterParameters.getMax(),filterParameters.getBeginUri(),filterParameters.getGetUp() != null);
  List<PostInfo> posts=new ArrayList<PostInfo>(postEntities.size());
  List<String> uris=new ArrayList<String>(1);
  this.articleListManadgedBean.setShowAllItems(true);
  IWSlideService slide=getServiceInstance(IWSlideService.class);
  for (  PostEntity entity : postEntities) {
    uris.add(entity.getArticle().getUri());
    List<ArticleItemBean> articleItems=this.articleListManadgedBean.getArticlesByURIs(uris,iwc);
    if (ListUtil.isEmpty(articleItems)) {
      continue;
    }
    uris.clear();
    ArticleItemBean article=articleItems.get(0);
    PostInfo post=new PostInfo();
    try {
      int userId=entity.getPostCreator();
      User user=this.getUserBusiness().getUser(userId);
      UserDataBean userInfo=this.getUserApplicationEngine().getUserInfo(user);
      post.setUriToAuthorPicture(userInfo.getPictureUri());
      post.setAuthor(userInfo.getName());
      post.setDate(entity.getArticle().getModificationDate());
    }
 catch (    RemoteException e) {
      this.getLogger().log(Level.WARNING,"String_Node_Str",e);
    }
    post.setTitle(article.getHeadline());
    post.setUriToBody(article.getResourcePath());
    post.setBody(article.getBody());
    List<String> attachments=article.getAttachments();
    List<Item> items=new ArrayList<Item>(attachments.size());
    for (    String path : attachments) {
      WebdavResource resource=null;
      try {
        resource=slide.getWebdavResourceAuthenticatedAsRoot(path);
      }
 catch (      Exception e) {
        this.getLogger().log(Level.WARNING,"String_Node_Str" + path,e);
        continue;
      }
      items.add(new Item(path,resource.getDisplayName()));
    }
    post.setAttachments(items);
    posts.add(post);
  }
  return posts;
}

Fixed version (ground truth):
public List<PostInfo> getPosts(PostFilterParameters filterParameters,IWContext iwc){
  Collection<PostEntity> postEntities=null;
  postEntities=this.postDao.getPosts(filterParameters.getCreators(),filterParameters.getReceivers(),filterParameters.getTypes(),filterParameters.getMax(),filterParameters.getBeginUri(),filterParameters.getGetUp() != null);
  List<PostInfo> posts=new ArrayList<PostInfo>(postEntities.size());
  List<String> uris=new ArrayList<String>(1);
  this.articleListManadgedBean.setShowAllItems(true);
  IWSlideService slide=getServiceInstance(IWSlideService.class);
  for (  PostEntity entity : postEntities) {
    uris.add(entity.getArticle().getUri());
    List<ArticleItemBean> articleItems=this.articleListManadgedBean.getArticlesByURIs(uris,iwc);
    if (ListUtil.isEmpty(articleItems)) {
      continue;
    }
    uris.clear();
    ArticleItemBean article=articleItems.get(0);
    PostInfo post=new PostInfo();
    try {
      int userId=entity.getPostCreator();
      User user=this.getUserBusiness().getUser(userId);
      UserDataBean userInfo=this.getUserApplicationEngine().getUserInfo(user);
      post.setUriToAuthorPicture(userInfo.getPictureUri());
      post.setAuthor(userInfo.getName());
      post.setDate(entity.getArticle().getModificationDate());
    }
 catch (    RemoteException e) {
      this.getLogger().log(Level.WARNING,"String_Node_Str",e);
    }
    post.setTitle(article.getHeadline());
    post.setUriToBody(article.getResourcePath());
    post.setBody(article.getBody());
    List<?> attachments=article.getAttachments();
    List<Item> items=new ArrayList<Item>(attachments.size());
    for (    Object path : attachments) {
      String uri=path instanceof String ? (String)path : path.toString();
      WebdavResource resource=null;
      try {
        resource=slide.getWebdavResourceAuthenticatedAsRoot(uri);
      }
 catch (      Exception e) {
        this.getLogger().log(Level.WARNING,"String_Node_Str" + uri,e);
        continue;
      }
      items.add(new Item(uri,resource.getDisplayName()));
    }
    post.setAttachments(items);
    posts.add(post);
  }
  return posts;
}