Program: 33783
Project: 33783
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Database.getInstance(this);
  Log.i(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();
          return;
        }
      }
 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);
  Database.getInstance(this);
  Log.i(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();
          return;
        }
      }
 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);
  loadFragment=(LoadAllDataTaskFragment)getFragmentManager().findFragmentByTag(LOAD_FRAGMENT_TAG);
  if (loadFragment != null) {
    viewPager.setCurrentItem(1,false);
  }
}