Program: 189608
Project: 189608
Buggy source:
@Override public void onViewCreated(View view,Bundle savedInstanceState){
  super.onViewCreated(view,savedInstanceState);
  Spinner launchIntentSpinner=getLaunchIntentSpinner();
  SeekBar delaySeekBar=(SeekBar)getView().findViewById(R.id.delay_seekbar);
  SeekBar tcpConnectTimeoutSeekBar=(SeekBar)getView().findViewById(R.id.tcp_timeout_seekbar);
  final TextView delayDisplay=(TextView)getView().findViewById(R.id.delay_display);
  final TextView tcpConnectTimeoutDisplay=(TextView)getView().findViewById(R.id.tcp_timeout_display);
  launchIntentSpinner.setOnItemSelectedListener(new OnItemSelectedListener(){
    @Override public void onItemSelected(    AdapterView<?> parent,    View view,    int position,    long id){
      selectedLaunchIntent=((ApplicationArrayAdapter)parent.getAdapter()).getItem(position).getIntent();
    }
    @Override public void onNothingSelected(    AdapterView<?> parent){
    }
  }
);
  delaySeekBar.setOnSeekBarChangeListener(new FieldSettingSeekBarChangeListener("String_Node_Str",delayDisplay));
  tcpConnectTimeoutSeekBar.setOnSeekBarChangeListener(new FieldSettingSeekBarChangeListener("String_Node_Str",tcpConnectTimeoutDisplay));
  Bundle args=getArguments();
  if (savedInstanceState != null) {
    delaySeekBar.setProgress(savedInstanceState.getInt("String_Node_Str"));
    tcpConnectTimeoutSeekBar.setProgress(savedInstanceState.getInt("String_Node_Str"));
    selectedLaunchIntent=savedInstanceState.getString("String_Node_Str");
    launchIntentSpinner.setAdapter(applicationAdapter);
    setSelectedLaunchIntent();
  }
 else   if (args != null) {
    Long hostId=args.getLong(EditHostActivity.KEY_HOST_ID);
    Host host=databaseManager.getHost(hostId);
    delay=host.getDelay();
    delaySeekBar.setProgress(host.getDelay());
    tcpConnectTimeout=host.getTcpConnectTimeout();
    tcpConnectTimeoutSeekBar.setProgress(host.getTcpConnectTimeout());
    selectedLaunchIntent=host.getLaunchIntentPackage();
  }
 else {
    delaySeekBar.setProgress(Host.DEFAULT_DELAY);
    tcpConnectTimeoutSeekBar.setProgress(Host.DEFAULT_TCP_CONNECT_TIMEOUT);
  }
  if (applicationAdapter == null) {
    initializeApplicationAdapter(Arrays.asList(new Application("String_Node_Str",null,"String_Node_Str")));
    RetrieveApplicationsAsyncTask retrieveAppsTask=new RetrieveApplicationsAsyncTask(getActivity(),this);
    retrieveAppsTask.execute();
  }
}

Fixed version (ground truth):
@Override public void onViewCreated(View view,Bundle savedInstanceState){
  super.onViewCreated(view,savedInstanceState);
  Spinner launchIntentSpinner=getLaunchIntentSpinner();
  SeekBar delaySeekBar=(SeekBar)getView().findViewById(R.id.delay_seekbar);
  SeekBar tcpConnectTimeoutSeekBar=(SeekBar)getView().findViewById(R.id.tcp_timeout_seekbar);
  final TextView delayDisplay=(TextView)getView().findViewById(R.id.delay_display);
  final TextView tcpConnectTimeoutDisplay=(TextView)getView().findViewById(R.id.tcp_timeout_display);
  launchIntentSpinner.setOnItemSelectedListener(new OnItemSelectedListener(){
    @Override public void onItemSelected(    AdapterView<?> parent,    View view,    int position,    long id){
      selectedLaunchIntent=((ApplicationArrayAdapter)parent.getAdapter()).getItem(position).getIntent();
    }
    @Override public void onNothingSelected(    AdapterView<?> parent){
    }
  }
);
  delaySeekBar.setOnSeekBarChangeListener(new FieldSettingSeekBarChangeListener("String_Node_Str",delayDisplay));
  tcpConnectTimeoutSeekBar.setOnSeekBarChangeListener(new FieldSettingSeekBarChangeListener("String_Node_Str",tcpConnectTimeoutDisplay));
  Bundle args=getArguments();
  if (savedInstanceState != null) {
    delaySeekBar.setProgress(savedInstanceState.getInt("String_Node_Str"));
    tcpConnectTimeoutSeekBar.setProgress(savedInstanceState.getInt("String_Node_Str"));
    selectedLaunchIntent=savedInstanceState.getString("String_Node_Str");
    launchIntentSpinner.setAdapter(applicationAdapter);
    setSelectedLaunchIntent();
  }
 else   if (args != null) {
    Long hostId=args.getLong(EditHostActivity.KEY_HOST_ID);
    Host host=databaseManager.getHost(hostId);
    delay=host.getDelay();
    delaySeekBar.setProgress(host.getDelay());
    tcpConnectTimeout=host.getTcpConnectTimeout();
    tcpConnectTimeoutSeekBar.setProgress(host.getTcpConnectTimeout());
    selectedLaunchIntent=host.getLaunchIntentPackage();
  }
 else {
    delaySeekBar.setProgress(Host.DEFAULT_DELAY);
    tcpConnectTimeoutSeekBar.setProgress(Host.DEFAULT_TCP_CONNECT_TIMEOUT);
  }
  if (applicationAdapter == null) {
    RetrieveApplicationsAsyncTask retrieveAppsTask=new RetrieveApplicationsAsyncTask(getActivity(),this);
    retrieveAppsTask.execute();
  }
}