Program: 3094
Project: 3094
Buggy source:
public long createRow(String mode,long time,String status,Float speed,long timestamp,Float accuracy,String provider,String wifiData,Vector<ArrayList<Double>> samples,Double latitude,Double longitude){
  ContentValues vals=new ContentValues();
  SharedPreferences settings=mCtx.getSharedPreferences(Mobility.MOBILITY,Context.MODE_PRIVATE);
  String username=settings.getString(Mobility.KEY_USERNAME,DEFAULT_USERNAME);
  if (wifiData.equals("String_Node_Str"))   wifiData="String_Node_Str";
  UUID id=UUID.randomUUID();
  String timezone=DateTimeZone.getDefault().getID();
  vals.put(KEY_ID,id.toString());
  Log.d(TAG,id.toString());
  vals.put(KEY_MODE,mode);
  vals.put(KEY_SPEED,speed);
  vals.put(KEY_STATUS,status);
  vals.put(KEY_LOC_TIMESTAMP,timestamp);
  vals.put(KEY_ACCURACY,accuracy);
  vals.put(KEY_PROVIDER,provider);
  vals.put(KEY_WIFIDATA,wifiData);
  vals.put(KEY_ACCELDATA,formatAccelData(samples));
  vals.put(KEY_TIME,time + "String_Node_Str");
  vals.put(KEY_TIMEZONE,timezone);
  vals.put(KEY_LATITUDE,latitude);
  vals.put(KEY_LONGITUDE,longitude);
  vals.put(KEY_USERNAME,username);
  Log.d(TAG,"String_Node_Str" + MOBILITY_TABLE + "String_Node_Str"+ mode);
  long rowid=-1;
  Uri row=mCtx.getContentResolver().insert(MobilityInterface.CONTENT_URI,vals);
  ProbeBuilder probe=new ProbeBuilder();
  probe.withId(id.toString()).withTime(time,timezone).withLocation(time,timezone,latitude,longitude,accuracy,provider);
  Mobility.writeProbe(mCtx,probe,mode,speed,formatAccelData(samples),wifiData);
  if (row != null) {
    rowid=ContentUris.parseId(row);
    ContentResolver r=mCtx.getContentResolver();
    r.notifyChange(MobilityInterface.CONTENT_URI,null);
  }
  return rowid;
}

Fixed version (ground truth):
public long createRow(String mode,long time,String status,Float speed,long timestamp,Float accuracy,String provider,String wifiData,Vector<ArrayList<Double>> samples,Double latitude,Double longitude){
  ContentValues vals=new ContentValues();
  SharedPreferences settings=mCtx.getSharedPreferences(Mobility.MOBILITY,Context.MODE_PRIVATE);
  String username=settings.getString(Mobility.KEY_USERNAME,DEFAULT_USERNAME);
  if (wifiData.equals("String_Node_Str"))   wifiData="String_Node_Str";
  UUID id=UUID.randomUUID();
  String timezone=DateTimeZone.getDefault().getID();
  vals.put(KEY_ID,id.toString());
  Log.d(TAG,id.toString());
  vals.put(KEY_MODE,mode);
  vals.put(KEY_SPEED,speed.toString());
  vals.put(KEY_STATUS,status);
  vals.put(KEY_LOC_TIMESTAMP,timestamp);
  vals.put(KEY_ACCURACY,accuracy.toString());
  vals.put(KEY_PROVIDER,provider);
  vals.put(KEY_WIFIDATA,wifiData);
  vals.put(KEY_ACCELDATA,formatAccelData(samples));
  vals.put(KEY_TIME,time + "String_Node_Str");
  vals.put(KEY_TIMEZONE,timezone);
  vals.put(KEY_LATITUDE,latitude.toString());
  vals.put(KEY_LONGITUDE,longitude.toString());
  vals.put(KEY_USERNAME,username);
  Log.d(TAG,"String_Node_Str" + MOBILITY_TABLE + "String_Node_Str"+ mode);
  long rowid=-1;
  Uri row=mCtx.getContentResolver().insert(MobilityInterface.CONTENT_URI,vals);
  ProbeBuilder probe=new ProbeBuilder();
  probe.withId(id.toString()).withTime(time,timezone).withLocation(time,timezone,latitude,longitude,accuracy,provider);
  Mobility.writeProbe(mCtx,probe,mode,speed,formatAccelData(samples),wifiData);
  if (row != null) {
    rowid=ContentUris.parseId(row);
    ContentResolver r=mCtx.getContentResolver();
    r.notifyChange(MobilityInterface.CONTENT_URI,null);
  }
  return rowid;
}