Program: 33857
Project: 33857
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Log.d(Constants.LOG_TAG,"String_Node_Str" + PreferenceManager.getDefaultSharedPreferences(this).getBoolean(ALL_DATA_LOADED,false));
  if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean(ALL_DATA_LOADED,false)) {
    if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(getIntent().getAction())) {
      Parcelable[] rawMsgs=getIntent().getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);
      NdefMessage message=(NdefMessage)rawMsgs[0];
      String uri=new String(message.getRecords()[0].getPayload());
      Log.d(Constants.LOG_TAG,"String_Node_Str" + uri);
      processNfcUri(uri);
      return;
    }
 else     if (Intent.ACTION_VIEW.equals(getIntent().getAction())) {
      Uri data=getIntent().getData();
      if (data != null && data.getHost() != null && data.getHost().equals(getString(R.string.web_url_host))) {
        Intent intent=Utilities.getIntentForTBAUrl(this,data);
        if (intent != null) {
          startActivity(intent);
          finish();
          return;
        }
 else {
          String url=data.toString();
          if (!url.startsWith("String_Node_Str") && !url.startsWith("String_Node_Str")) {
            url="String_Node_Str" + url;
          }
          Intent openUrlIntent=new Intent(Intent.ACTION_VIEW,Uri.parse(url));
          startActivity(openUrlIntent);
        }
      }
 else {
        goToHome();
        return;
      }
    }
 else {
      goToHome();
      return;
    }
  }
  setContentView(R.layout.activity_launch);
  viewPager=(DisableSwipeViewPager)findViewById(R.id.view_pager);
  viewPager.setSwipeEnabled(false);
  viewPager.setOffscreenPageLimit(2);
  viewPager.setAdapter(new FirstLaunchFragmentAdapter(this));
  loadingMessage=(TextView)findViewById(R.id.message);
  findViewById(R.id.welcome_next_page).setOnClickListener(this);
  findViewById(R.id.finish).setOnClickListener(this);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Log.d(Constants.LOG_TAG,"String_Node_Str" + PreferenceManager.getDefaultSharedPreferences(this).getBoolean(ALL_DATA_LOADED,false));
  if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean(ALL_DATA_LOADED,false)) {
    if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(getIntent().getAction())) {
      Parcelable[] rawMsgs=getIntent().getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);
      NdefMessage message=(NdefMessage)rawMsgs[0];
      String uri=new String(message.getRecords()[0].getPayload());
      Log.d(Constants.LOG_TAG,"String_Node_Str" + uri);
      processNfcUri(uri);
      return;
    }
 else     if (Intent.ACTION_VIEW.equals(getIntent().getAction())) {
      Uri data=getIntent().getData();
      Log.d(Constants.LOG_TAG,"String_Node_Str" + data.toString());
      if (data != null) {
        Intent intent=Utilities.getIntentForTBAUrl(this,data);
        if (intent != null) {
          startActivity(intent);
          finish();
          return;
        }
 else {
          goToHome();
          finish();
        }
      }
 else {
        goToHome();
        return;
      }
    }
 else {
      goToHome();
      return;
    }
  }
  setContentView(R.layout.activity_launch);
  viewPager=(DisableSwipeViewPager)findViewById(R.id.view_pager);
  viewPager.setSwipeEnabled(false);
  viewPager.setOffscreenPageLimit(2);
  viewPager.setAdapter(new FirstLaunchFragmentAdapter(this));
  loadingMessage=(TextView)findViewById(R.id.message);
  findViewById(R.id.welcome_next_page).setOnClickListener(this);
  findViewById(R.id.finish).setOnClickListener(this);
}