Program: 81077
Project: 81077
Buggy source:
@Override public void onActivityCreated(Bundle savedInstanceState){
  super.onActivityCreated(savedInstanceState);
  getListView().setEmptyView(mEmptyList);
  ((ViewGroup)getListView().getParent()).addView(mEmptyList);
  setHasOptionsMenu(true);
  mAlertList=new AlertList(getActivity());
  mAlertList.initView(getView().findViewById(R.id.arrivals_alert_list));
  if (mHeader == null) {
    mHeader=new ArrivalsListHeader(getActivity(),this);
    mHeaderView=getView().findViewById(R.id.arrivals_list_header);
  }
 else {
    getView().findViewById(R.id.arrivals_list_header).setVisibility(View.GONE);
  }
  mHeader.initView(mHeaderView);
  mHeader.refresh();
  Button loadMoreArrivals=(Button)mFooter.findViewById(R.id.load_more_arrivals);
  loadMoreArrivals.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      loadMoreArrivals();
    }
  }
);
  getListView().addFooterView(mFooter);
  Button loadMoreArrivalsEmptyList=(Button)mEmptyList.findViewById(R.id.load_more_arrivals);
  loadMoreArrivalsEmptyList.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      loadMoreArrivals();
    }
  }
);
  setStopId();
  setUserInfo();
  mAdapter=new ArrivalsListAdapter(getActivity());
  setListAdapter(mAdapter);
  setListShown(false);
  mRoutesFilter=ObaContract.StopRouteFilters.get(getActivity(),mStopId);
  mTripsForStopCallback=new TripsForStopCallback();
  LoaderManager mgr=getLoaderManager();
  mgr.initLoader(TRIPS_FOR_STOP_LOADER,null,mTripsForStopCallback);
  mgr.initLoader(ARRIVALS_LIST_LOADER,getArguments(),this);
  setEmptyText(UIHelp.getNoArrivalsMessage(getActivity(),getArrivalsLoader().getMinutesAfter(),false));
}

Fixed version (ground truth):
@Override public void onActivityCreated(Bundle savedInstanceState){
  super.onActivityCreated(savedInstanceState);
  getListView().setEmptyView(mEmptyList);
  ((ViewGroup)getListView().getParent()).addView(mEmptyList);
  setHasOptionsMenu(true);
  mAlertList=new AlertList(getActivity());
  mAlertList.initView(getView().findViewById(R.id.arrivals_alert_list));
  setupHeader(savedInstanceState);
  Button loadMoreArrivals=(Button)mFooter.findViewById(R.id.load_more_arrivals);
  loadMoreArrivals.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      loadMoreArrivals();
    }
  }
);
  getListView().addFooterView(mFooter);
  Button loadMoreArrivalsEmptyList=(Button)mEmptyList.findViewById(R.id.load_more_arrivals);
  loadMoreArrivalsEmptyList.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      loadMoreArrivals();
    }
  }
);
  setStopId();
  setUserInfo();
  mAdapter=new ArrivalsListAdapter(getActivity());
  setListAdapter(mAdapter);
  setListShown(false);
  mRoutesFilter=ObaContract.StopRouteFilters.get(getActivity(),mStopId);
  mTripsForStopCallback=new TripsForStopCallback();
  LoaderManager mgr=getLoaderManager();
  mgr.initLoader(TRIPS_FOR_STOP_LOADER,null,mTripsForStopCallback);
  mgr.initLoader(ARRIVALS_LIST_LOADER,getArguments(),this);
  setEmptyText(UIHelp.getNoArrivalsMessage(getActivity(),getArrivalsLoader().getMinutesAfter(),false));
}