Program: 7449
Project: 7449
Buggy source:
@Override protected void onCreate(Bundle icicle){
  super.onCreate(icicle);
  setContentView(getContentViewResource());
  Resources r=getResources();
  mDigitsBackground=r.getDrawable(R.drawable.btn_dial_textfield_active);
  mDigitsEmptyBackground=r.getDrawable(R.drawable.btn_dial_textfield);
  mDeleteBackground=r.getDrawable(R.drawable.btn_dial_delete_active);
  mDeleteEmptyBackground=r.getDrawable(R.drawable.btn_dial_delete);
  mDigits=(EditText)findViewById(R.id.digits);
  mDigits.setKeyListener(DialerKeyListener.getInstance());
  mDigits.setOnClickListener(this);
  mDigits.setOnKeyListener(this);
  maybeAddNumberFormatting();
  View view=findViewById(R.id.one);
  if (view != null) {
    setupKeypad();
  }
  view=findViewById(R.id.backspace);
  view.setOnClickListener(this);
  view.setOnLongClickListener(this);
  mDelete=view;
  mDigitsAndBackspace=(View)findViewById(R.id.digitsAndBackspace);
  mDialpad=(View)findViewById(R.id.dialpad);
  mDialpadChooser=(ListView)findViewById(R.id.dialpadChooser);
  mDialpadChooser.setOnItemClickListener(this);
  if (!resolveIntent() && icicle != null) {
    super.onRestoreInstanceState(icicle);
  }
synchronized (mToneGeneratorLock) {
    if (mToneGenerator == null) {
      try {
        mToneGenerator=new ToneGenerator(AudioManager.STREAM_VOICE_CALL,TONE_RELATIVE_VOLUME);
      }
 catch (      RuntimeException e) {
        Log.w(TAG,"String_Node_Str" + e);
        mToneGenerator=null;
      }
    }
  }
  mVibrateOn=r.getBoolean(R.bool.config_enable_dialer_key_vibration);
  mVibrateDuration=(long)r.getInteger(R.integer.config_dialer_key_vibrate_duration);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle icicle){
  super.onCreate(icicle);
  setContentView(getContentViewResource());
  Resources r=getResources();
  mDigitsBackground=r.getDrawable(R.drawable.btn_dial_textfield_active);
  mDigitsEmptyBackground=r.getDrawable(R.drawable.btn_dial_textfield);
  mDeleteBackground=r.getDrawable(R.drawable.btn_dial_delete_active);
  mDeleteEmptyBackground=r.getDrawable(R.drawable.btn_dial_delete);
  mDigits=(EditText)findViewById(R.id.digits);
  mDigits.setKeyListener(DialerKeyListener.getInstance());
  mDigits.setOnClickListener(this);
  mDigits.setOnKeyListener(this);
  maybeAddNumberFormatting();
  View view=findViewById(R.id.one);
  if (view != null) {
    setupKeypad();
  }
  view=findViewById(R.id.backspace);
  view.setOnClickListener(this);
  view.setOnLongClickListener(this);
  mDelete=view;
  mDigitsAndBackspace=(View)findViewById(R.id.digitsAndBackspace);
  mDialpad=(View)findViewById(R.id.dialpad);
  mDialpadChooser=(ListView)findViewById(R.id.dialpadChooser);
  mDialpadChooser.setOnItemClickListener(this);
  if (!resolveIntent() && icicle != null) {
    super.onRestoreInstanceState(icicle);
  }
synchronized (mToneGeneratorLock) {
    if (mToneGenerator == null) {
      try {
        mToneGenerator=new ToneGenerator(AudioManager.STREAM_DTMF,TONE_RELATIVE_VOLUME);
      }
 catch (      RuntimeException e) {
        Log.w(TAG,"String_Node_Str" + e);
        mToneGenerator=null;
      }
    }
  }
  mVibrateOn=r.getBoolean(R.bool.config_enable_dialer_key_vibration);
  mVibrateDuration=(long)r.getInteger(R.integer.config_dialer_key_vibrate_duration);
}