Program: 134571
Project: 134571
Buggy source:
private void updateError(String errorMessage,final List<String> logs){
  Log.d(getClass().getName(),"String_Node_Str");
  listenerSwitch.setClickable(false);
  secondaryActionButton.setClickable(false);
  errorText.setTextColor(Color.RED);
  errorText.setVisibility(View.VISIBLE);
  errorText.setText(errorMessage);
  showLogsButton.setVisibility(View.VISIBLE);
  showLogsButton.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View view){
      Log.d(getClass().getName(),"String_Node_Str");
      AlertDialog.Builder alert=new AlertDialog.Builder(getActivity());
      alert.setTitle(R.string.switch_listener_show_logs_title);
      WebView wv=new WebView(getActivity());
      final StringBuilder dataBuilder=new StringBuilder();
      dataBuilder.append("String_Node_Str");
      for (      final String logLine : logs) {
        dataBuilder.append("String_Node_Str").append(logLine).append("String_Node_Str");
      }
      dataBuilder.append("String_Node_Str");
      wv.loadDataWithBaseURL("String_Node_Str",dataBuilder.toString(),"String_Node_Str","String_Node_Str","String_Node_Str");
      alert.setView(wv);
      alert.setNegativeButton(R.string.switch_listener_show_logs_close,new DialogInterface.OnClickListener(){
        @Override public void onClick(        DialogInterface dialog,        int id){
          dialog.dismiss();
        }
      }
);
      alert.show();
    }
  }
);
}

Fixed version (ground truth):
private void updateError(String errorMessage,final SwitchListenerResult result){
  Log.d(getClass().getName(),"String_Node_Str");
  listenerSwitch.setClickable(false);
  secondaryActionButton.setClickable(false);
  errorText.setTextColor(Color.RED);
  errorText.setVisibility(View.VISIBLE);
  errorText.setText(errorMessage);
  showLogsButton.setVisibility(View.VISIBLE);
  showLogsButton.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View view){
      Log.d(getClass().getName(),"String_Node_Str");
      final AlertDialog.Builder alert=new AlertDialog.Builder(getActivity());
      alert.setTitle(R.string.switch_listener_show_logs_title);
      final WebView wv=new WebView(getActivity());
      final StringBuilder dataBuilder=new StringBuilder();
      dataBuilder.append("String_Node_Str");
      if (result.getError() != null) {
        dataBuilder.append("String_Node_Str").append(result.getError().getMessage()).append("String_Node_Str");
        final StringWriter sw=new StringWriter();
        final PrintWriter pw=new PrintWriter(sw);
        result.getError().printStackTrace(pw);
        final String stackTrace=sw.toString();
        pw.close();
        dataBuilder.append("String_Node_Str");
        dataBuilder.append("String_Node_Str").append(stackTrace).append("String_Node_Str");
      }
      if (result.getLogs() != null) {
        dataBuilder.append("String_Node_Str");
        dataBuilder.append("String_Node_Str");
        for (        final String logLine : result.getLogs()) {
          dataBuilder.append(logLine).append("String_Node_Str");
        }
        dataBuilder.append("String_Node_Str");
      }
      dataBuilder.append("String_Node_Str");
      wv.loadDataWithBaseURL("String_Node_Str",dataBuilder.toString(),"String_Node_Str","String_Node_Str","String_Node_Str");
      alert.setView(wv);
      alert.setNegativeButton(R.string.switch_listener_show_logs_close,new DialogInterface.OnClickListener(){
        @Override public void onClick(        DialogInterface dialog,        int id){
          dialog.dismiss();
        }
      }
);
      alert.show();
    }
  }
);
}