Program: 179615
Project: 179615
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.repository_deployments_layout);
  repository=getIntent().getParcelableExtra(Constants.REPOSITORY);
  ((TextView)findViewById(R.id.repoTitle)).setText(repository.getTitle());
  findViewById(R.id.colorLabel).getBackground().setLevel(repository.getColorLabelNo());
  releasesButton=(Button)findViewById(R.id.releases_button);
  releasesButton.setOnClickListener(this);
  releasesButton.setSelected(true);
  mReleasesList=(ListView)findViewById(R.id.releases_list);
  releasesLoadingFooterView=((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.releases_loading_footer,null,false);
  View releasesAddNewFooterView=((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.add_new_release_footer,null,false);
  releasesAddNewFooterView.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      Intent intent=new Intent(getApplicationContext(),CreateNewReleaseActivity.class);
      intent.putExtra(Constants.REPOSITORY_ID,String.valueOf(repository.getId()));
      intent.putExtra(Constants.REPOSITORY_TITLE,String.valueOf(repository.getTitle()));
      intent.putExtra(Constants.REPOSITORY_COLOR_NO,String.valueOf(repository.getColorLabelNo()));
      startActivityForResult(intent,0);
    }
  }
);
  mReleasesList.addFooterView(releasesLoadingFooterView,null,false);
  mReleasesList.addFooterView(releasesAddNewFooterView,null,true);
  mReleasesAdapter=new ReleasesAdapter(this,R.layout.releases_entry,mReleaseArray);
  mReleasesList.setAdapter(mReleasesAdapter);
  mServersList=(ExpandableListView)findViewById(R.id.servers_list);
  serversLoadingFooterView=((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.environments_server_environments_loading_field,null,false);
  serversAddNewFooterView=((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.add_server_environment_footer,null,false);
  mServersList.addFooterView(serversLoadingFooterView,null,false);
  mServersList.addFooterView(serversAddNewFooterView);
  serversButton=(Button)findViewById(R.id.servers_button);
  serversButton.setOnClickListener(this);
  serversButton.setSelected(false);
  mServersAdapter=new ServersAdapter(this,R.layout.environments_list_entry,mServersArray);
  mServersList.setAdapter(mServersAdapter);
  serversAddNewFooterView.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      Intent intent=new Intent(getApplicationContext(),CreateNewServerEnvironmentActivity.class);
      intent.putExtra(Constants.REPOSITORY_ID,repository.getId());
      startActivity(intent);
    }
  }
);
  new DownloadReleaseListTask(this).execute();
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.repository_deployments_layout);
  repository=getIntent().getParcelableExtra(Constants.REPOSITORY);
  ((TextView)findViewById(R.id.repoTitle)).setText(repository.getTitle());
  findViewById(R.id.colorLabel).getBackground().setLevel(repository.getColorLabelNo());
  releasesButton=(Button)findViewById(R.id.releases_button);
  releasesButton.setOnClickListener(this);
  releasesButton.setSelected(true);
  mReleasesList=(ListView)findViewById(R.id.releases_list);
  releasesLoadingFooterView=((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.releases_loading_footer,null,false);
  View releasesAddNewFooterView=((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.add_new_release_footer,null,false);
  releasesAddNewFooterView.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      Intent intent=new Intent(getApplicationContext(),CreateNewReleaseActivity.class);
      intent.putExtra(Constants.REPOSITORY_ID,String.valueOf(repository.getId()));
      intent.putExtra(Constants.REPOSITORY_TITLE,repository.getTitle());
      intent.putExtra(Constants.REPOSITORY_COLOR_NO,repository.getColorLabelNo());
      startActivityForResult(intent,0);
    }
  }
);
  mReleasesList.addFooterView(releasesLoadingFooterView,null,false);
  mReleasesList.addFooterView(releasesAddNewFooterView,null,true);
  mReleasesAdapter=new ReleasesAdapter(this,R.layout.releases_entry,mReleaseArray);
  mReleasesList.setAdapter(mReleasesAdapter);
  mServersList=(ExpandableListView)findViewById(R.id.servers_list);
  serversLoadingFooterView=((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.environments_server_environments_loading_field,null,false);
  serversAddNewFooterView=((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.add_server_environment_footer,null,false);
  mServersList.addFooterView(serversLoadingFooterView,null,false);
  mServersList.addFooterView(serversAddNewFooterView);
  serversButton=(Button)findViewById(R.id.servers_button);
  serversButton.setOnClickListener(this);
  serversButton.setSelected(false);
  mServersAdapter=new ServersAdapter(this,R.layout.environments_list_entry,mServersArray);
  mServersList.setAdapter(mServersAdapter);
  serversAddNewFooterView.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      Intent intent=new Intent(getApplicationContext(),CreateNewServerEnvironmentActivity.class);
      intent.putExtra(Constants.REPOSITORY_ID,repository.getId());
      startActivity(intent);
    }
  }
);
  new DownloadReleaseListTask(this).execute();
}