Program: 146351
Project: 146351
Buggy source:
private void setupListeners(){
  AdapterView.OnItemSelectedListener listener=new AdapterView.OnItemSelectedListener(){
    @Override public void onItemSelected(    AdapterView<?> parent,    View view,    int position,    long id){
      clearAdapter();
    }
    @Override public void onNothingSelected(    AdapterView<?> parent){
    }
  }
;
  spinnerEndingMonth.setOnItemSelectedListener(listener);
  spinnerStartingYear.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){
    @Override public void onItemSelected(    AdapterView<?> parent,    View view,    int position,    long id){
      setupEndYearSpinner();
      setupStartingMonthSpinner();
      clearAdapter();
    }
    @Override public void onNothingSelected(    AdapterView<?> parent){
    }
  }
);
  spinnerEndingYear.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){
    @Override public void onItemSelected(    AdapterView<?> parent,    View view,    int position,    long id){
      setupEndMonthSpinner();
      clearAdapter();
    }
    @Override public void onNothingSelected(    AdapterView<?> parent){
    }
  }
);
  spinnerStartingMonth.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){
    @Override public void onItemSelected(    AdapterView<?> parent,    View view,    int position,    long id){
      setupEndMonthSpinner();
      clearAdapter();
    }
    @Override public void onNothingSelected(    AdapterView<?> parent){
    }
  }
);
}

Fixed version (ground truth):
private void setupListeners(){
  AdapterView.OnItemSelectedListener listener=new AdapterView.OnItemSelectedListener(){
    @Override public void onItemSelected(    AdapterView<?> parent,    View view,    int position,    long id){
      clearAdapter();
    }
    @Override public void onNothingSelected(    AdapterView<?> parent){
    }
  }
;
  spinnerEndingMonth.setOnItemSelectedListener(listener);
  spinnerStartingYear.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){
    @Override public void onItemSelected(    AdapterView<?> parent,    View view,    int position,    long id){
      setupEndYearSpinner();
      setupStartingMonthSpinner();
      clearAdapter();
    }
    @Override public void onNothingSelected(    AdapterView<?> parent){
    }
  }
);
  spinnerEndingYear.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){
    @Override public void onItemSelected(    AdapterView<?> parent,    View view,    int position,    long id){
      setupEndMonthSpinner();
      if (getStartingYear().compareTo(getEndingYear()) < 0) {
        ArrayAdapter<String> startMonthAdapter;
        if (endingYearIsCurrent()) {
          startMonthAdapter=new ArrayAdapter<>(getApplicationContext(),R.layout.spinner_item_black,getMonths(0,DateUtil.monthNumber() + 1));
        }
 else {
          startMonthAdapter=new ArrayAdapter<>(getApplicationContext(),R.layout.spinner_item_black,getMonths());
        }
        spinnerEndingMonth.setAdapter(startMonthAdapter);
      }
      clearAdapter();
    }
    @Override public void onNothingSelected(    AdapterView<?> parent){
    }
  }
);
  spinnerStartingMonth.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){
    @Override public void onItemSelected(    AdapterView<?> parent,    View view,    int position,    long id){
      setupEndMonthSpinner();
      clearAdapter();
    }
    @Override public void onNothingSelected(    AdapterView<?> parent){
    }
  }
);
}