Program: 20060
Project: 20060
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.event_detail_layout);
  Log.d(TAG,"String_Node_Str");
  Button button=(Button)findViewById(R.id.backbutton);
  Bundle bundle=getIntent().getExtras();
  if (bundle != null) {
    String event_name=bundle.getString("String_Node_Str");
    String selection=Clause.QUERY_BASIC_INFO_BY_EVENT_NAME;
    String[] selectionArgs=new String[]{event_name};
    Cursor c=managedQuery(EPGProvider.CONTENT_URI_EVENTS,null,selection,selectionArgs,null);
    String short_description;
    long startTime=0;
    int duration=0;
    if (c.getCount() < 1) {
      short_description="String_Node_Str";
    }
 else {
      c.moveToFirst();
      short_description=c.getString(c.getColumnIndexOrThrow(BasicColumns.SHORT_DESCRIPTION));
      startTime=c.getInt(c.getColumnIndexOrThrow(BasicColumns.START_TIME));
      duration=c.getInt(c.getColumnIndexOrThrow(BasicColumns.DURATION));
      String eguid=c.getString(c.getColumnIndexOrThrow(BasicColumns._ID));
      Log.d(TAG,"String_Node_Str");
      Cursor c2=managedQuery(Uri.parse(EPGProvider.CONTENT_URI_QUERY_EXTENED + "String_Node_Str" + eguid),null,null,null,null);
      String extended_description="String_Node_Str";
      if (c2 != null) {
        extended_description=c2.getString(c2.getColumnIndexOrThrow(ExtendedFTSColumns.ITEM_DES)) + "String_Node_Str" + c2.getString(c2.getColumnIndexOrThrow(ExtendedFTSColumns.ITEM_CONTENT));
      }
      ListView detailListView=(ListView)findViewById(R.id.event_detail_list);
      String[] info=new String[]{(new Date(startTime)).toLocaleString(),Integer.toString(duration / 60) + "String_Node_Str",short_description,extended_description};
      detailListView.setAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_expandable_list_item_1,info));
    }
    ;
  }
 else {
  }
  context=this;
  button.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      startActivity(new Intent(context,EPGProviderActivity.class));
      finish();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.event_detail_layout);
  Log.d(TAG,"String_Node_Str");
  Button button=(Button)findViewById(R.id.backbutton);
  Bundle bundle=getIntent().getExtras();
  if (bundle != null) {
    String event_name=bundle.getString("String_Node_Str");
    String selection=Clause.QUERY_BASIC_INFO_BY_EVENT_NAME;
    String[] selectionArgs=new String[]{event_name};
    Cursor c=managedQuery(EPGProvider.CONTENT_URI_EVENTS,null,selection,selectionArgs,null);
    String short_description;
    long startTime=0;
    int duration=0;
    if (c.getCount() < 1) {
      short_description="String_Node_Str";
    }
 else {
      c.moveToFirst();
      short_description=c.getString(c.getColumnIndexOrThrow(BasicColumns.SHORT_DESCRIPTION));
      startTime=c.getInt(c.getColumnIndexOrThrow(BasicColumns.START_TIME));
      duration=c.getInt(c.getColumnIndexOrThrow(BasicColumns.DURATION));
      String eguid=c.getString(c.getColumnIndexOrThrow(BasicColumns._ID));
      Log.d(TAG,"String_Node_Str");
      Cursor c2=managedQuery(Uri.parse(EPGProvider.CONTENT_URI_QUERY_EXTENED + "String_Node_Str" + eguid),null,null,null,null);
      String extended_description="String_Node_Str";
      if (c2 != null) {
        extended_description=c2.getString(c2.getColumnIndexOrThrow(ExtendedFTSColumns.ITEM_DES)) + "String_Node_Str" + c2.getString(c2.getColumnIndexOrThrow(ExtendedFTSColumns.ITEM_CONTENT));
      }
      ListView detailListView=(ListView)findViewById(R.id.event_detail_list);
      String[] info=new String[]{(new Date(startTime * 1000)).toLocaleString(),Integer.toString(duration / 60) + "String_Node_Str",short_description,extended_description};
      detailListView.setAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_expandable_list_item_1,info));
    }
    ;
  }
 else {
  }
  context=this;
  button.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      startActivity(new Intent(context,EPGProviderActivity.class));
      finish();
    }
  }
);
}