gt:             if (followData == null) {
context: package org.wordpress.android.ui.stats;
  
  import android.app.Activity;
  import android.content.res.Resources;
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.ArrayAdapter;
  
  import org.wordpress.android.R;
  import org.wordpress.android.ui.stats.adapters.PostsAndPagesAdapter;
  import org.wordpress.android.ui.stats.models.AuthorModel;
  import org.wordpress.android.ui.stats.models.CommentFollowersModel;
  import org.wordpress.android.ui.stats.models.CommentsModel;
  import org.wordpress.android.ui.stats.models.FollowDataModel;
  import org.wordpress.android.ui.stats.models.PostModel;
  import org.wordpress.android.ui.stats.service.StatsService;
  import org.wordpress.android.util.FormatUtils;
  import org.wordpress.android.util.GravatarUtils;
  import org.wordpress.android.widgets.WPNetworkImageView;
  
  import java.util.ArrayList;
  import java.util.List;
  
  
  public class StatsCommentsFragment extends StatsAbstractListFragment {
      public static final String TAG = StatsCommentsFragment.class.getSimpleName();
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          View view = super.onCreateView(inflater, container, savedInstanceState);
  
          Resources res = container.getContext().getResources();
          String[] titles = {
                  res.getString(R.string.stats_comments_by_authors),
                  res.getString(R.string.stats_comments_by_posts_and_pages),
          };
  
          setupTopModulePager(inflater, container, view, titles);
  
          return view;
      }
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          if (savedInstanceState != null) {
              if (savedInstanceState.containsKey(ARGS_TOP_PAGER_SELECTED_BUTTON_INDEX)) {
                  mTopPagerSelectedButtonIndex = savedInstanceState.getInt(ARGS_TOP_PAGER_SELECTED_BUTTON_INDEX);
              }
          } else {
              // first time it's created
              mTopPagerSelectedButtonIndex = getArguments().getInt(ARGS_TOP_PAGER_SELECTED_BUTTON_INDEX, 0);
          }
      }
  
      @Override
      public void onSaveInstanceState(Bundle outState) {
          //AppLog.d(AppLog.T.STATS, this.getTag() + " > saving instance state");
          outState.putInt(ARGS_TOP_PAGER_SELECTED_BUTTON_INDEX, mTopPagerSelectedButtonIndex);
          super.onSaveInstanceState(outState);
      }
  
      @Override
      protected void updateUI() {
          if (!isAdded()) {
              return;
          }
  
          mTopPagerContainer.setVisibility(View.VISIBLE);
  
          if (mDatamodels == null) {
              showHideNoResultsUI(true);
              mTotalsLabel.setVisibility(View.GONE);
              return;
          }
  
          // This module is a kind of exception to the normal way we build page interface.
          // In this module only the first rest endpoint StatsService.StatsEndpointsEnum.COMMENTS
          // is used to populate 99% of the UI even if there is a tab on the top.
          // Switching to a different tab on the UI doesn't switch the underlying datamodel index as in all other modules.
          if (isErrorResponse(0)) {
              showErrorUI();
              return;
          }
  
          if (mDatamodels[1] != null && !isErrorResponse(1)) { // check if comment-followers is already here
              mTotalsLabel.setVisibility(View.VISIBLE);
              int totalNumberOfFollowers = ((CommentFollowersModel) mDatamodels[1]).getTotal();
              try {
                  mTotalsLabel.setText(getString(R.string.stats_comments_total_comments_followers,
                                       FormatUtils.formatDecimal(totalNumberOfFollowers)));
              } catch (AssertionError e) {
                  // Workaround for a weird bug in Android 4.2.2 with en_GB or en_AU locale
                  // https://github.com/wordpress-mobile/WordPress-Android/issues/2639
                  mTotalsLabel.setVisibility(View.GONE);
              }
          } else {
              mTotalsLabel.setVisibility(View.GONE);
          }
  
          ArrayAdapter adapter = null;
  
          if (mTopPagerSelectedButtonIndex == 0 && hasAuthors()) {
              adapter = new AuthorsAdapter(getActivity(), getAuthors());
          } else if (mTopPagerSelectedButtonIndex == 1 && hasPosts()) {
              adapter = new PostsAndPagesAdapter(getActivity(), getPosts());
          }
  
          if (adapter != null) {
              StatsUIHelper.reloadLinearLayout(getActivity(), adapter, mList, getMaxNumberOfItemsToShowInList());
              showHideNoResultsUI(false);
          } else {
              showHideNoResultsUI(true);
          }
      }
  
      private boolean hasAuthors() {
          return !isDataEmpty(0)
                  && ((CommentsModel) mDatamodels[0]).getAuthors() != null
                  && ((CommentsModel) mDatamodels[0]).getAuthors().size() > 0;
      }
  
      private List<AuthorModel> getAuthors() {
          if (!hasAuthors()) {
              return new ArrayList<AuthorModel>(0);
          }
          return ((CommentsModel) mDatamodels[0]).getAuthors();
      }
  
      private boolean hasPosts() {
          return !isDataEmpty(0)
                  && ((CommentsModel) mDatamodels[0]).getPosts() != null
                  && ((CommentsModel) mDatamodels[0]).getPosts().size() > 0;
      }
  
      private List<PostModel> getPosts() {
          if (!hasPosts()) {
              return new ArrayList<PostModel>(0);
          }
          return ((CommentsModel) mDatamodels[0]).getPosts();
      }
  
      @Override
      protected boolean isViewAllOptionAvailable() {
          if (isDataEmpty(0)) {
              return false;
          }
  
          if (mTopPagerSelectedButtonIndex == 0 && hasAuthors() && getAuthors().size() > MAX_NUM_OF_ITEMS_DISPLAYED_IN_LIST) {
              return true;
          } else if (mTopPagerSelectedButtonIndex == 1 && hasPosts() && getPosts().size() > MAX_NUM_OF_ITEMS_DISPLAYED_IN_LIST) {
              return true;
          }
          return false;
      }
  
      @Override
      protected boolean isExpandableList() {
          return false;
      }
  
      private class AuthorsAdapter extends ArrayAdapter<AuthorModel> {
  
          private final List<AuthorModel> list;
          private final Activity context;
          private final LayoutInflater inflater;
  
          public AuthorsAdapter(Activity context, List<AuthorModel> list) {
              super(context, R.layout.stats_list_cell, list);
              this.context = context;
              this.list = list;
              inflater = LayoutInflater.from(context);
          }
  
          @Override
          public View getView(int position, View convertView, ViewGroup parent) {
              View rowView = convertView;
              // reuse views
              if (rowView == null) {
                  rowView = inflater.inflate(R.layout.stats_list_cell, parent, false);
                  // configure view holder
                  StatsViewHolder viewHolder = new StatsViewHolder(rowView);
                  rowView.setTag(viewHolder);
              }
  
              final AuthorModel currentRowData = list.get(position);
              final StatsViewHolder holder = (StatsViewHolder) rowView.getTag();
  
              // entries
              holder.setEntryText(currentRowData.getName(), getResources().getColor(R.color.stats_text_color));
  
              // totals
              holder.totalsTextView.setText(FormatUtils.formatDecimal(currentRowData.getViews()));
  
              // avatar
              holder.networkImageView.setImageUrl(GravatarUtils.fixGravatarUrl(currentRowData.getAvatar(), mResourceVars.headerAvatarSizePx), WPNetworkImageView.ImageType.AVATAR);
              holder.networkImageView.setVisibility(View.VISIBLE);
  
              final FollowDataModel followData = currentRowData.getFollowData();
  