Program: 177847
Project: 177847
Buggy source:
@Override public View getView(final int position,View oldView,ViewGroup parent){
  View returnView=null;
  CommentListItem view=null;
  if (oldView instanceof CommentListItem) {
    view=(CommentListItem)oldView;
  }
  User tmpUser=null;
  final Comment item=(Comment)getItem(position);
  if (item != null) {
    tmpUser=item.getUser();
  }
  User currentUser=getSocializeUI().getSocialize().getSession().getUser();
  if (currentUser != null && tmpUser != null && currentUser.getId().equals(tmpUser.getId())) {
    tmpUser=currentUser;
  }
  final User user=tmpUser;
  if (view == null || !imageLoader.isEmpty()) {
    view=commentItemViewFactory.getBean();
  }
  if (view != null) {
    returnView=view;
    if (position >= comments.size()) {
      if (loadingView == null) {
        loadingView=listItemLoadingViewFactory.getBean();
        loadingView.setTag(null);
      }
      returnView=loadingView;
    }
 else {
      if (item != null) {
        String displayName="String_Node_Str";
        String imageUrl=null;
        if (user != null) {
          imageUrl=user.getSmallImageUri();
          displayName=user.getDisplayName();
          if (displayName == null) {
            displayName=item.getUser().getDisplayName();
            if (displayName == null) {
              displayName="String_Node_Str";
            }
          }
          view.setOnClickListener(new OnClickListener(){
            @Override public void onClick(            View v){
              if (user != null && user.getId() != null) {
                getSocializeUI().showActionDetailViewForResult(context,user,item,SocializeUIActivity.PROFILE_UPDATE);
              }
 else {
                if (logger != null) {
                  logger.warn("String_Node_Str" + item.getId());
                }
              }
            }
          }
);
        }
 else {
          displayName="String_Node_Str";
        }
        TextView comment=view.getComment();
        TextView userName=view.getAuthor();
        TextView time=view.getTime();
        ImageView locationIcon=view.getLocationIcon();
        final ImageView userIcon=view.getUserIcon();
        if (comment != null) {
          comment.setText(item.getText());
        }
        if (userName != null) {
          userName.setText(displayName);
        }
        if (locationIcon != null) {
          if (item.hasLocation() && item.isLocationShared()) {
            locationIcon.setVisibility(View.VISIBLE);
          }
 else {
            locationIcon.setVisibility(View.GONE);
          }
        }
        if (time != null) {
          Long date=item.getDate();
          if (date != null && date > 0) {
            long diff=(now.getTime() - date.longValue());
            time.setText(dateUtils.getTimeString(diff) + "String_Node_Str");
          }
 else {
            time.setText("String_Node_Str");
          }
        }
        if (userIcon != null && drawables != null) {
          int densitySize=deviceUtils.getDIP(iconSize);
          final Drawable defaultImage=drawables.getDrawable(SocializeUI.DEFAULT_USER_ICON);
          if (user != null) {
            userIcon.getBackground().setAlpha(255);
            if (!StringUtils.isEmpty(imageUrl)) {
              try {
                CacheableDrawable cached=drawables.getCache().get(imageUrl);
                if (cached != null && !cached.isRecycled()) {
                  if (logger != null && logger.isInfoEnabled()) {
                    logger.info("String_Node_Str" + cached);
                  }
                  userIcon.setImageDrawable(cached);
                  userIcon.getBackground().setAlpha(255);
                }
 else {
                  userIcon.setImageDrawable(null);
                  userIcon.getBackground().setAlpha(64);
                  imageLoader.loadImage(position,imageUrl,new ImageLoadListener(){
                    @Override public void onImageLoadFail(                    final ImageLoadRequest request,                    Exception error){
                      logError("String_Node_Str",error);
                      userIcon.post(new Runnable(){
                        public void run(){
                          if (logger != null && logger.isInfoEnabled()) {
                            logger.info("String_Node_Str");
                          }
                          userIcon.setImageDrawable(defaultImage);
                          userIcon.getBackground().setAlpha(255);
                        }
                      }
);
                    }
                    @Override public void onImageLoad(                    final ImageLoadRequest request,                    final SafeBitmapDrawable drawable,                    boolean async){
                      if (request == null || !request.isCanceled()) {
                        if (async) {
                          userIcon.post(new Runnable(){
                            public void run(){
                              setImageIcon(user,position,userIcon,drawable,defaultImage);
                            }
                          }
);
                        }
 else {
                          setImageIcon(user,position,userIcon,drawable,defaultImage);
                        }
                      }
                    }
                  }
);
                }
              }
 catch (              Exception e) {
                String errorMsg="String_Node_Str" + imageUrl + "String_Node_Str";
                logError(errorMsg,e);
                userIcon.setImageDrawable(defaultImage);
              }
            }
 else             if (!StringUtils.isEmpty(user.getProfilePicData())) {
              try {
                Drawable drawable=drawables.getDrawable(user.getId().toString(),base64Utils.decode(user.getProfilePicData()),densitySize,densitySize);
                userIcon.setImageDrawable(drawable);
              }
 catch (              Base64DecoderException e) {
                logError("String_Node_Str",e);
                userIcon.setImageDrawable(defaultImage);
              }
            }
 else {
              userIcon.setImageDrawable(defaultImage);
            }
          }
        }
      }
    }
  }
  if (returnView == null) {
    returnView=oldView;
  }
  return returnView;
}

Fixed version (ground truth):
@Override public View getView(final int position,View oldView,ViewGroup parent){
  View returnView=null;
  CommentListItem view=null;
  if (oldView instanceof CommentListItem) {
    view=(CommentListItem)oldView;
  }
  User tmpUser=null;
  final Comment item=(Comment)getItem(position);
  if (item != null) {
    tmpUser=item.getUser();
  }
  User currentUser=getSocializeUI().getSocialize().getSession().getUser();
  if (currentUser != null && tmpUser != null && currentUser.getId().equals(tmpUser.getId())) {
    tmpUser=currentUser;
  }
  final User user=tmpUser;
  if (view == null || !imageLoader.isEmpty()) {
    view=commentItemViewFactory.getBean();
  }
  if (view != null) {
    returnView=view;
    if (position >= comments.size()) {
      if (loadingView == null) {
        Log.e(SocializeLogger.LOG_TAG,"String_Node_Str");
        loadingView=listItemLoadingViewFactory.getBean();
        loadingView.setTag(null);
      }
      returnView=loadingView;
    }
 else {
      if (item != null) {
        String displayName="String_Node_Str";
        String imageUrl=null;
        if (user != null) {
          imageUrl=user.getSmallImageUri();
          displayName=user.getDisplayName();
          if (displayName == null) {
            displayName=item.getUser().getDisplayName();
            if (displayName == null) {
              displayName="String_Node_Str";
            }
          }
          view.setOnClickListener(new OnClickListener(){
            @Override public void onClick(            View v){
              if (user != null && user.getId() != null) {
                getSocializeUI().showActionDetailViewForResult(context,user,item,SocializeUIActivity.PROFILE_UPDATE);
              }
 else {
                if (logger != null) {
                  logger.warn("String_Node_Str" + item.getId());
                }
              }
            }
          }
);
        }
 else {
          displayName="String_Node_Str";
        }
        TextView comment=view.getComment();
        TextView userName=view.getAuthor();
        TextView time=view.getTime();
        ImageView locationIcon=view.getLocationIcon();
        final ImageView userIcon=view.getUserIcon();
        if (comment != null) {
          comment.setText(item.getText());
        }
        if (userName != null) {
          userName.setText(displayName);
        }
        if (locationIcon != null) {
          if (item.hasLocation() && item.isLocationShared()) {
            locationIcon.setVisibility(View.VISIBLE);
          }
 else {
            locationIcon.setVisibility(View.GONE);
          }
        }
        if (time != null) {
          Long date=item.getDate();
          if (date != null && date > 0) {
            long diff=(now.getTime() - date.longValue());
            time.setText(dateUtils.getTimeString(diff) + "String_Node_Str");
          }
 else {
            time.setText("String_Node_Str");
          }
        }
        if (userIcon != null && drawables != null) {
          int densitySize=deviceUtils.getDIP(iconSize);
          final Drawable defaultImage=drawables.getDrawable(SocializeUI.DEFAULT_USER_ICON);
          if (user != null) {
            userIcon.getBackground().setAlpha(255);
            if (!StringUtils.isEmpty(imageUrl)) {
              try {
                CacheableDrawable cached=drawables.getCache().get(imageUrl);
                if (cached != null && !cached.isRecycled()) {
                  if (logger != null && logger.isInfoEnabled()) {
                    logger.info("String_Node_Str" + cached);
                  }
                  userIcon.setImageDrawable(cached);
                  userIcon.getBackground().setAlpha(255);
                }
 else {
                  userIcon.setImageDrawable(null);
                  userIcon.getBackground().setAlpha(64);
                  imageLoader.loadImage(position,imageUrl,new ImageLoadListener(){
                    @Override public void onImageLoadFail(                    final ImageLoadRequest request,                    Exception error){
                      logError("String_Node_Str",error);
                      userIcon.post(new Runnable(){
                        public void run(){
                          if (logger != null && logger.isInfoEnabled()) {
                            logger.info("String_Node_Str");
                          }
                          userIcon.setImageDrawable(defaultImage);
                          userIcon.getBackground().setAlpha(255);
                        }
                      }
);
                    }
                    @Override public void onImageLoad(                    final ImageLoadRequest request,                    final SafeBitmapDrawable drawable,                    boolean async){
                      if (request == null || !request.isCanceled()) {
                        if (async) {
                          userIcon.post(new Runnable(){
                            public void run(){
                              setImageIcon(user,position,userIcon,drawable,defaultImage);
                            }
                          }
);
                        }
 else {
                          setImageIcon(user,position,userIcon,drawable,defaultImage);
                        }
                      }
                    }
                  }
);
                }
              }
 catch (              Exception e) {
                String errorMsg="String_Node_Str" + imageUrl + "String_Node_Str";
                logError(errorMsg,e);
                userIcon.setImageDrawable(defaultImage);
              }
            }
 else             if (!StringUtils.isEmpty(user.getProfilePicData())) {
              try {
                Drawable drawable=drawables.getDrawable(user.getId().toString(),base64Utils.decode(user.getProfilePicData()),densitySize,densitySize);
                userIcon.setImageDrawable(drawable);
              }
 catch (              Base64DecoderException e) {
                logError("String_Node_Str",e);
                userIcon.setImageDrawable(defaultImage);
              }
            }
 else {
              userIcon.setImageDrawable(defaultImage);
            }
          }
        }
      }
    }
  }
  if (returnView == null) {
    returnView=oldView;
  }
  return returnView;
}