Program: 197155
Project: 197155
Buggy source:
TaskRecord(ActivityManagerService service,int _taskId,Intent _intent,Intent _affinityIntent,String _affinity,ComponentName _realActivity,ComponentName _origActivity,boolean _rootWasReset,boolean _autoRemoveRecents,boolean _askedCompatMode,int _taskType,int _userId,int _effectiveUid,String _lastDescription,ArrayList<ActivityRecord> activities,long _firstActiveTime,long _lastActiveTime,long lastTimeMoved,boolean neverRelinquishIdentity,ActivityManager.TaskDescription _lastTaskDescription,int taskAffiliation,int prevTaskId,int nextTaskId,int taskAffiliationColor,int callingUid,String callingPackage){
  mService=service;
  mFilename=String.valueOf(_taskId) + TASK_THUMBNAIL_SUFFIX + TaskPersister.IMAGE_EXTENSION;
  mLastThumbnailFile=new File(TaskPersister.sImagesDir,mFilename);
  taskId=_taskId;
  intent=_intent;
  affinityIntent=_affinityIntent;
  affinity=_affinity;
  voiceSession=null;
  voiceInteractor=null;
  realActivity=_realActivity;
  origActivity=_origActivity;
  rootWasReset=_rootWasReset;
  isAvailable=true;
  autoRemoveRecents=_autoRemoveRecents;
  askedCompatMode=_askedCompatMode;
  taskType=_taskType;
  mTaskToReturnTo=HOME_ACTIVITY_TYPE;
  userId=_userId;
  effectiveUid=_effectiveUid;
  firstActiveTime=_firstActiveTime;
  lastActiveTime=_lastActiveTime;
  lastDescription=_lastDescription;
  mActivities=activities;
  mLastTimeMoved=lastTimeMoved;
  mNeverRelinquishIdentity=neverRelinquishIdentity;
  lastTaskDescription=_lastTaskDescription;
  mAffiliatedTaskId=taskAffiliation;
  mAffiliatedTaskColor=taskAffiliationColor;
  mPrevAffiliateTaskId=prevTaskId;
  mNextAffiliateTaskId=nextTaskId;
  mCallingUid=callingUid;
  mCallingPackage=callingPackage;
}

Fixed version (ground truth):
TaskRecord(ActivityManagerService service,int _taskId,Intent _intent,Intent _affinityIntent,String _affinity,String _rootAffinity,ComponentName _realActivity,ComponentName _origActivity,boolean _rootWasReset,boolean _autoRemoveRecents,boolean _askedCompatMode,int _taskType,int _userId,int _effectiveUid,String _lastDescription,ArrayList<ActivityRecord> activities,long _firstActiveTime,long _lastActiveTime,long lastTimeMoved,boolean neverRelinquishIdentity,ActivityManager.TaskDescription _lastTaskDescription,int taskAffiliation,int prevTaskId,int nextTaskId,int taskAffiliationColor,int callingUid,String callingPackage){
  mService=service;
  mFilename=String.valueOf(_taskId) + TASK_THUMBNAIL_SUFFIX + TaskPersister.IMAGE_EXTENSION;
  mLastThumbnailFile=new File(TaskPersister.sImagesDir,mFilename);
  taskId=_taskId;
  intent=_intent;
  affinityIntent=_affinityIntent;
  affinity=_affinity;
  rootAffinity=_affinity;
  voiceSession=null;
  voiceInteractor=null;
  realActivity=_realActivity;
  origActivity=_origActivity;
  rootWasReset=_rootWasReset;
  isAvailable=true;
  autoRemoveRecents=_autoRemoveRecents;
  askedCompatMode=_askedCompatMode;
  taskType=_taskType;
  mTaskToReturnTo=HOME_ACTIVITY_TYPE;
  userId=_userId;
  effectiveUid=_effectiveUid;
  firstActiveTime=_firstActiveTime;
  lastActiveTime=_lastActiveTime;
  lastDescription=_lastDescription;
  mActivities=activities;
  mLastTimeMoved=lastTimeMoved;
  mNeverRelinquishIdentity=neverRelinquishIdentity;
  lastTaskDescription=_lastTaskDescription;
  mAffiliatedTaskId=taskAffiliation;
  mAffiliatedTaskColor=taskAffiliationColor;
  mPrevAffiliateTaskId=prevTaskId;
  mNextAffiliateTaskId=nextTaskId;
  mCallingUid=callingUid;
  mCallingPackage=callingPackage;
}