Program: 25885
Project: 25885
Buggy source:
private void fetchTimeline(Intent intent){
  if (App.DEBUG) {
    Log.d(TAG,"String_Node_Str");
  }
  List<Status> statuses=null;
  int page=intent.getIntExtra(EXTRA_PAGE,0);
  String id=intent.getStringExtra(EXTRA_ID);
  String sinceId=intent.getStringExtra(EXTRA_SINCE_ID);
  String maxId=intent.getStringExtra(EXTRA_MAX_ID);
  int count=intent.getIntExtra(EXTRA_COUNT,DEFAULT_TIMELINE_COUNT);
  if (App.getApnType() == ApnType.WIFI) {
    count=MAX_TIMELINE_COUNT;
  }
 else {
    count=DEFAULT_TIMELINE_COUNT;
  }
  try {
switch (type) {
case TYPE_STATUSES_HOME_TIMELINE:
      if (App.DEBUG)       Log.d(TAG,"String_Node_Str");
    statuses=api.homeTimeline(count,page,sinceId,maxId,FORMAT,MODE);
  break;
case TYPE_STATUSES_MENTIONS:
if (App.DEBUG) Log.d(TAG,"String_Node_Str");
statuses=api.mentions(count,page,sinceId,maxId,FORMAT,MODE);
break;
case TYPE_STATUSES_PUBLIC_TIMELINE:
count=DEFAULT_TIMELINE_COUNT;
if (App.DEBUG) Log.d(TAG,"String_Node_Str");
statuses=api.pubicTimeline(count,FORMAT,MODE);
break;
case TYPE_FAVORITES_LIST:
if (App.DEBUG) Log.d(TAG,"String_Node_Str");
statuses=api.favorites(count,page,id,FORMAT,MODE);
break;
case TYPE_STATUSES_USER_TIMELINE:
if (App.DEBUG) Log.d(TAG,"String_Node_Str");
statuses=api.userTimeline(count,page,id,sinceId,maxId,FORMAT,MODE);
break;
case TYPE_STATUSES_CONTEXT_TIMELINE:
if (App.DEBUG) Log.d(TAG,"String_Node_Str");
statuses=api.contextTimeline(id,FORMAT,MODE);
break;
default :
break;
}
if (statuses == null || statuses.size() == 0) {
sendIntMessage(0);
if (App.DEBUG) Log.d(TAG,"String_Node_Str");
return;
}
 else {
int size=statuses.size();
if (App.DEBUG) {
Log.d(TAG,"String_Node_Str" + size);
}
ContentResolver cr=getContentResolver();
if (size >= count && page <= 1 && maxId == null) {
String where=BasicColumns.TYPE + "String_Node_Str";
String[] whereArgs=new String[]{String.valueOf(type)};
int delete=cr.delete(StatusInfo.CONTENT_URI,where,whereArgs);
if (App.DEBUG) {
Log.d(TAG,"String_Node_Str" + count + "String_Node_Str"+ delete+ "String_Node_Str");
}
}
int insertedCount=cr.bulkInsert(StatusInfo.CONTENT_URI,Parser.toContentValuesArray(statuses));
sendIntMessage(insertedCount);
updateUsersFromStatus(statuses,type);
}
}
 catch (ApiException e) {
if (App.DEBUG) {
log("String_Node_Str" + e.statusCode + "String_Node_Str"+ e.errorMessage);
e.printStackTrace();
}
sendErrorMessage(e);
}
}

Fixed version (ground truth):
private void fetchTimeline(Intent intent){
  List<Status> statuses=null;
  int page=intent.getIntExtra(EXTRA_PAGE,0);
  String id=intent.getStringExtra(EXTRA_ID);
  String sinceId=intent.getStringExtra(EXTRA_SINCE_ID);
  String maxId=intent.getStringExtra(EXTRA_MAX_ID);
  int count=intent.getIntExtra(EXTRA_COUNT,DEFAULT_TIMELINE_COUNT);
  if (App.getApnType() == ApnType.WIFI) {
    count=MAX_TIMELINE_COUNT;
  }
 else {
    count=DEFAULT_TIMELINE_COUNT;
  }
  if (App.DEBUG) {
    Log.d(TAG,"String_Node_Str" + id + "String_Node_Str"+ sinceId+ "String_Node_Str"+ maxId+ "String_Node_Str"+ page+ "String_Node_Str"+ count);
  }
  try {
switch (type) {
case TYPE_STATUSES_HOME_TIMELINE:
      if (App.DEBUG)       Log.d(TAG,"String_Node_Str" + id);
    statuses=api.homeTimeline(count,page,sinceId,maxId,FORMAT,MODE);
  break;
case TYPE_STATUSES_MENTIONS:
if (App.DEBUG) Log.d(TAG,"String_Node_Str" + id);
statuses=api.mentions(count,page,sinceId,maxId,FORMAT,MODE);
break;
case TYPE_STATUSES_PUBLIC_TIMELINE:
count=DEFAULT_TIMELINE_COUNT;
if (App.DEBUG) Log.d(TAG,"String_Node_Str" + id);
statuses=api.pubicTimeline(count,FORMAT,MODE);
break;
case TYPE_FAVORITES_LIST:
if (App.DEBUG) Log.d(TAG,"String_Node_Str" + id);
statuses=api.favorites(count,page,id,FORMAT,MODE);
break;
case TYPE_STATUSES_USER_TIMELINE:
if (App.DEBUG) Log.d(TAG,"String_Node_Str" + id);
statuses=api.userTimeline(count,page,id,sinceId,maxId,FORMAT,MODE);
break;
case TYPE_STATUSES_CONTEXT_TIMELINE:
if (App.DEBUG) Log.d(TAG,"String_Node_Str" + id);
statuses=api.contextTimeline(id,FORMAT,MODE);
break;
default :
break;
}
if (statuses == null || statuses.size() == 0) {
sendIntMessage(0);
if (App.DEBUG) Log.d(TAG,"String_Node_Str" + id);
return;
}
 else {
int size=statuses.size();
if (App.DEBUG) {
Log.d(TAG,"String_Node_Str" + size + "String_Node_Str"+ id);
}
ContentResolver cr=getContentResolver();
if (size >= count && page <= 1 && maxId == null) {
String where=BasicColumns.TYPE + "String_Node_Str";
String[] whereArgs=new String[]{String.valueOf(type)};
if (type == TYPE_STATUSES_USER_TIMELINE) {
where=BasicColumns.TYPE + "String_Node_Str" + StatusInfo.USER_ID+ "String_Node_Str";
whereArgs=new String[]{String.valueOf(type),id};
}
 else if (type == TYPE_FAVORITES_LIST) {
where=BasicColumns.TYPE + "String_Node_Str" + StatusInfo.OWNER_ID+ "String_Node_Str";
whereArgs=new String[]{String.valueOf(type),id};
}
int delete=cr.delete(StatusInfo.CONTENT_URI,where,whereArgs);
if (App.DEBUG) {
Log.d(TAG,"String_Node_Str" + count + "String_Node_Str"+ delete+ "String_Node_Str"+ id+ "String_Node_Str"+ type);
}
}
int insertedCount=cr.bulkInsert(StatusInfo.CONTENT_URI,Parser.toContentValuesArray(statuses));
sendIntMessage(insertedCount);
updateUsersFromStatus(statuses,type);
}
}
 catch (ApiException e) {
if (App.DEBUG) {
log("String_Node_Str" + e.statusCode + "String_Node_Str"+ e.errorMessage+ "String_Node_Str"+ id);
e.printStackTrace();
}
sendErrorMessage(e);
}
}