Program: 142143
Project: 142143
Buggy source:
@Override public void deliverResult(List<Entity<TreeReference>> entities,List<TreeReference> references,NodeEntityFactory factory){
  loader=null;
  Detail detail=session.getDetail(selectDatum.getShortDetail());
  int[] order=detail.getSortOrder();
  for (int i=0; i < detail.getFields().length; ++i) {
    String header=detail.getFields()[i].getHeader().evaluate();
    if (order.length == 0 && !"String_Node_Str".equals(header)) {
      order=new int[]{i};
    }
  }
  ListView view=((ListView)this.findViewById(R.id.screen_entity_select_list));
  setupDivider(view);
  adapter=new EntityListAdapter(EntitySelectActivity.this,detail,references,entities,order,tts,factory);
  view.setAdapter(adapter);
  adapter.registerDataSetObserver(this.mListStateObserver);
  containerFragment.setData(adapter);
  if (!resuming && !mNoDetailMode && inAwesomeMode&& this.getIntent().hasExtra(EXTRA_ENTITY_KEY)) {
    TreeReference entity=selectDatum.getEntityFromID(asw.getEvaluationContext(),this.getIntent().getStringExtra(EXTRA_ENTITY_KEY));
    if (entity != null) {
      displayReferenceAwesome(entity,adapter.getPosition(entity));
      updateSelectedItem(entity,true);
    }
  }
  findViewById(R.id.entity_select_loading).setVisibility(View.GONE);
  if (adapter != null && filterString != null && !"String_Node_Str".equals(filterString)) {
    adapter.applyFilter(filterString);
  }
  if (inAwesomeMode) {
    updateSelectedItem(true);
  }
  this.startTimer();
  if (locationChangedWhileLoading) {
    loadEntities();
  }
}

Fixed version (ground truth):
@Override public void deliverResult(List<Entity<TreeReference>> entities,List<TreeReference> references,NodeEntityFactory factory){
  loader=null;
  Detail detail=session.getDetail(selectDatum.getShortDetail());
  int[] order=detail.getSortOrder();
  for (int i=0; i < detail.getFields().length; ++i) {
    String header=detail.getFields()[i].getHeader().evaluate();
    if (order.length == 0 && !"String_Node_Str".equals(header)) {
      order=new int[]{i};
    }
  }
  ListView view=((ListView)this.findViewById(R.id.screen_entity_select_list));
  setupDivider(view);
  adapter=new EntityListAdapter(EntitySelectActivity.this,detail,references,entities,order,tts,factory);
  view.setAdapter(adapter);
  adapter.registerDataSetObserver(this.mListStateObserver);
  containerFragment.setData(adapter);
  if (!resuming && !mNoDetailMode && inAwesomeMode&& this.getIntent().hasExtra(EXTRA_ENTITY_KEY)) {
    TreeReference entity=selectDatum.getEntityFromID(asw.getEvaluationContext(),this.getIntent().getStringExtra(EXTRA_ENTITY_KEY));
    if (entity != null) {
      displayReferenceAwesome(entity,adapter.getPosition(entity));
      updateSelectedItem(entity,true);
    }
  }
  findViewById(R.id.entity_select_loading).setVisibility(View.GONE);
  if (adapter != null && filterString != null && !"String_Node_Str".equals(filterString)) {
    adapter.applyFilter(filterString);
  }
  if (inAwesomeMode) {
    updateSelectedItem(true);
  }
  this.startTimer();
  if (locationChangedWhileLoading) {
    Log.i("String_Node_Str","String_Node_Str");
    loadEntities();
    locationChangedWhileLoading=false;
  }
}