Program: 31769
Project: 31769
Buggy source:
@SuppressLint("String_Node_Str") private void buildDialog(Context context){
  LayoutInflater inflater=LayoutInflater.from(context);
  rangeViewView=inflater.inflate(R.layout.dialog_view_range,null);
  rangeViewView.findViewById(R.id.show_range_button_load).setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      SetRangeView(true);
    }
  }
);
  AlertDialog.Builder freqDialogBuilder=new AlertDialog.Builder(context);
  freqDialogBuilder.setView(rangeViewView).setPositiveButton(R.string.ok,new DialogInterface.OnClickListener(){
    @Override public void onClick(    DialogInterface dialog,    int id){
      double[] rangeDefault=graphView.getViewPhysicalRange();
      double[] rr=new double[rangeDefault.length / 2];
      int[] resList={R.id.et_freq_setting_lower_bound,R.id.et_freq_setting_upper_bound,R.id.et_db_setting_lower_bound,R.id.et_db_setting_upper_bound};
      for (int i=0; i < resList.length; i++) {
        EditText et=(EditText)rangeViewView.findViewById(resList[i]);
        if (et == null)         Log.v(TAG,"String_Node_Str" + i + "String_Node_Str");
        if (et == null)         continue;
        if (et.getTag() == null)         Log.v(TAG,"String_Node_Str" + i + "String_Node_Str");
        if (et.getTag() == null || (boolean)et.getTag()) {
          rr[i]=AnalyzerUtil.parseDouble(et.getText().toString());
        }
 else {
          rr[i]=rangeDefault[i];
          Log.v(TAG,"String_Node_Str" + i + "String_Node_Str"+ rr[i]);
        }
      }
      rr=graphView.setViewRange(rr,rangeDefault);
      boolean isLock=((CheckBox)rangeViewView.findViewById(R.id.show_range_lock)).isChecked();
      SaveViewRange(rr,isLock);
      if (isLock) {
        ct.stickToMeasureMode();
        ct.viewRangeArray=rr;
      }
 else {
        ct.stickToMeasureModeCancel();
      }
    }
  }
).setNegativeButton(R.string.cancel,new DialogInterface.OnClickListener(){
    public void onClick(    DialogInterface dialog,    int id){
      Log.v(TAG,"String_Node_Str");
    }
  }
);
  rangeViewDialog=freqDialogBuilder.create();
}

Fixed version (ground truth):
@SuppressLint("String_Node_Str") private void buildDialog(Context context){
  LayoutInflater inflater=LayoutInflater.from(context);
  rangeViewView=inflater.inflate(R.layout.dialog_view_range,null);
  rangeViewView.findViewById(R.id.show_range_button_load).setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      SetRangeView(true);
    }
  }
);
  AlertDialog.Builder freqDialogBuilder=new AlertDialog.Builder(context);
  freqDialogBuilder.setView(rangeViewView).setPositiveButton(R.string.ok,new DialogInterface.OnClickListener(){
    @Override public void onClick(    DialogInterface dialog,    int id){
      boolean isLock=((CheckBox)rangeViewView.findViewById(R.id.show_range_lock)).isChecked();
      double[] rangeDefault=graphView.getViewPhysicalRange();
      double[] rr=new double[rangeDefault.length / 2];
      int[] resList={R.id.et_freq_setting_lower_bound,R.id.et_freq_setting_upper_bound,R.id.et_db_setting_lower_bound,R.id.et_db_setting_upper_bound};
      for (int i=0; i < resList.length; i++) {
        EditText et=(EditText)rangeViewView.findViewById(resList[i]);
        if (et == null)         Log.v(TAG,"String_Node_Str" + i + "String_Node_Str");
        if (et == null)         continue;
        if (et.getTag() == null)         Log.v(TAG,"String_Node_Str" + i + "String_Node_Str");
        if (et.getTag() == null || (boolean)et.getTag() || isLock) {
          rr[i]=AnalyzerUtil.parseDouble(et.getText().toString());
        }
 else {
          rr[i]=rangeDefault[i];
          Log.v(TAG,"String_Node_Str" + i + "String_Node_Str"+ rr[i]);
        }
      }
      rr=graphView.setViewRange(rr,rangeDefault);
      SaveViewRange(rr,isLock);
      if (isLock) {
        ct.stickToMeasureMode();
        ct.viewRangeArray=rr;
      }
 else {
        ct.stickToMeasureModeCancel();
      }
    }
  }
).setNegativeButton(R.string.cancel,new DialogInterface.OnClickListener(){
    public void onClick(    DialogInterface dialog,    int id){
      Log.v(TAG,"String_Node_Str");
    }
  }
);
  rangeViewDialog=freqDialogBuilder.create();
}