Program: 8349
Project: 8349
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  mExportHelper=new ExportHelper(this);
  mProviderHelper=new ProviderHelper(this);
  setTitle(null);
  mName=(TextView)findViewById(R.id.view_key_name);
  mStatusText=(TextView)findViewById(R.id.view_key_status);
  mStatusImage=(ImageView)findViewById(R.id.view_key_status_image);
  mBigToolbar=(RelativeLayout)findViewById(R.id.toolbar_big);
  mActionEncryptFile=(ImageButton)findViewById(R.id.view_key_action_encrypt_files);
  mActionEncryptText=(ImageButton)findViewById(R.id.view_key_action_encrypt_text);
  mActionNfc=(ImageButton)findViewById(R.id.view_key_action_nfc);
  mFab=(FloatingActionButton)findViewById(R.id.fab);
  mPhoto=(AspectRatioImageView)findViewById(R.id.view_key_photo);
  mQrCode=(ImageView)findViewById(R.id.view_key_qr_code);
  mQrCodeLayout=(CardView)findViewById(R.id.view_key_qr_code_layout);
  mRotateSpin=AnimationUtils.loadAnimation(this,R.anim.rotate_spin);
  mRotateSpin.setAnimationListener(new AnimationListener(){
    @Override public void onAnimationStart(    Animation animation){
    }
    @Override public void onAnimationEnd(    Animation animation){
      mRefreshItem.getActionView().clearAnimation();
      mRefreshItem.setActionView(null);
      mRefreshItem.setEnabled(true);
      supportInvalidateOptionsMenu();
    }
    @Override public void onAnimationRepeat(    Animation animation){
    }
  }
);
  mRotate=AnimationUtils.loadAnimation(this,R.anim.rotate);
  mRotate.setRepeatCount(Animation.INFINITE);
  mRotate.setAnimationListener(new Animation.AnimationListener(){
    @Override public void onAnimationStart(    Animation animation){
    }
    @Override public void onAnimationEnd(    Animation animation){
    }
    @Override public void onAnimationRepeat(    Animation animation){
      if (!mIsRefreshing) {
        mRefreshItem.getActionView().clearAnimation();
        mRefreshItem.getActionView().startAnimation(mRotateSpin);
      }
    }
  }
);
  mRefresh=getLayoutInflater().inflate(R.layout.indeterminate_progress,null);
  mDataUri=getIntent().getData();
  if (mDataUri == null) {
    Log.e(Constants.TAG,"String_Node_Str");
    finish();
    return;
  }
  if (mDataUri.getHost().equals(ContactsContract.AUTHORITY)) {
    mDataUri=ContactHelper.dataUriFromContactUri(this,mDataUri);
    if (mDataUri == null) {
      Log.e(Constants.TAG,"String_Node_Str");
      Toast.makeText(this,R.string.error_contacts_key_id_missing,Toast.LENGTH_LONG).show();
      finish();
      return;
    }
  }
  Log.i(Constants.TAG,"String_Node_Str" + mDataUri.toString());
  mActionEncryptFile.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      encrypt(mDataUri,false);
    }
  }
);
  mActionEncryptText.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      encrypt(mDataUri,true);
    }
  }
);
  mFab.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      if (mIsSecret) {
        startSafeSlinger(mDataUri);
      }
 else {
        scanQrCode();
      }
    }
  }
);
  mQrCodeLayout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showQrCodeDialog();
    }
  }
);
  mActionNfc.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      invokeNfcBeam();
    }
  }
);
  getSupportLoaderManager().initLoader(LOADER_ID_UNIFIED,null,this);
  initNfc(mDataUri);
  startFragment(savedInstanceState,mDataUri);
}

Fixed version (ground truth):
@SuppressLint("String_Node_Str") @Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  mExportHelper=new ExportHelper(this);
  mProviderHelper=new ProviderHelper(this);
  setTitle(null);
  mName=(TextView)findViewById(R.id.view_key_name);
  mStatusText=(TextView)findViewById(R.id.view_key_status);
  mStatusImage=(ImageView)findViewById(R.id.view_key_status_image);
  mBigToolbar=(RelativeLayout)findViewById(R.id.toolbar_big);
  mActionEncryptFile=(ImageButton)findViewById(R.id.view_key_action_encrypt_files);
  mActionEncryptText=(ImageButton)findViewById(R.id.view_key_action_encrypt_text);
  mActionNfc=(ImageButton)findViewById(R.id.view_key_action_nfc);
  mFab=(FloatingActionButton)findViewById(R.id.fab);
  mPhoto=(AspectRatioImageView)findViewById(R.id.view_key_photo);
  mQrCode=(ImageView)findViewById(R.id.view_key_qr_code);
  mQrCodeLayout=(CardView)findViewById(R.id.view_key_qr_code_layout);
  mRotateSpin=AnimationUtils.loadAnimation(this,R.anim.rotate_spin);
  mRotateSpin.setAnimationListener(new AnimationListener(){
    @Override public void onAnimationStart(    Animation animation){
    }
    @Override public void onAnimationEnd(    Animation animation){
      mRefreshItem.getActionView().clearAnimation();
      mRefreshItem.setActionView(null);
      mRefreshItem.setEnabled(true);
      supportInvalidateOptionsMenu();
    }
    @Override public void onAnimationRepeat(    Animation animation){
    }
  }
);
  mRotate=AnimationUtils.loadAnimation(this,R.anim.rotate);
  mRotate.setRepeatCount(Animation.INFINITE);
  mRotate.setAnimationListener(new Animation.AnimationListener(){
    @Override public void onAnimationStart(    Animation animation){
    }
    @Override public void onAnimationEnd(    Animation animation){
    }
    @Override public void onAnimationRepeat(    Animation animation){
      if (!mIsRefreshing) {
        mRefreshItem.getActionView().clearAnimation();
        mRefreshItem.getActionView().startAnimation(mRotateSpin);
      }
    }
  }
);
  mRefresh=getLayoutInflater().inflate(R.layout.indeterminate_progress,null);
  mDataUri=getIntent().getData();
  if (mDataUri == null) {
    Log.e(Constants.TAG,"String_Node_Str");
    finish();
    return;
  }
  if (mDataUri.getHost().equals(ContactsContract.AUTHORITY)) {
    mDataUri=ContactHelper.dataUriFromContactUri(this,mDataUri);
    if (mDataUri == null) {
      Log.e(Constants.TAG,"String_Node_Str");
      Toast.makeText(this,R.string.error_contacts_key_id_missing,Toast.LENGTH_LONG).show();
      finish();
      return;
    }
  }
  Log.i(Constants.TAG,"String_Node_Str" + mDataUri);
  mActionEncryptFile.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      encrypt(mDataUri,false);
    }
  }
);
  mActionEncryptText.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      encrypt(mDataUri,true);
    }
  }
);
  mFab.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      if (mIsSecret) {
        startSafeSlinger(mDataUri);
      }
 else {
        scanQrCode();
      }
    }
  }
);
  mQrCodeLayout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showQrCodeDialog();
    }
  }
);
  mActionNfc.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      invokeNfcBeam();
    }
  }
);
  getSupportLoaderManager().initLoader(LOADER_ID_UNIFIED,null,this);
  initNfc(mDataUri);
  startFragment(savedInstanceState,mDataUri);
}