Program: 179618
Project: 179618
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);
  relesaesLoadingFooterView=((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.releases_loading_footer,null,false);
  mReleasesList.addFooterView(relesaesLoadingFooterView,null,false);
  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.add_server_environment_footer,null,false);
  View 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);
  relesaesLoadingFooterView=((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.releases_loading_footer,null,false);
  mReleasesList.addFooterView(relesaesLoadingFooterView,null,false);
  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);
  View 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();
}