Program: 33724
Project: 33724
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));
  boolean redownload=checkDataRedownload();
  if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean(ALL_DATA_LOADED,false) && !redownload) {
    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);
  if (redownload) {
    ((TextView)findViewById(R.id.welcome_message)).setText(getString(R.string.update_message));
  }
  loadFragment=(LoadAllDataTaskFragment)getFragmentManager().findFragmentByTag(LOAD_FRAGMENT_TAG);
  if (loadFragment != null) {
    viewPager.setCurrentItem(1,false);
  }
}

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));
  boolean redownload=checkDataRedownload();
  if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean(ALL_DATA_LOADED,false) && !redownload) {
    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);
  if (savedInstanceState != null) {
    if (savedInstanceState.containsKey(CURRENT_LOADING_MESSAGE_KEY)) {
      currentLoadingMessage=savedInstanceState.getString(CURRENT_LOADING_MESSAGE_KEY);
      loadingMessage.setText(currentLoadingMessage);
    }
  }
  findViewById(R.id.welcome_next_page).setOnClickListener(this);
  findViewById(R.id.finish).setOnClickListener(this);
  if (redownload) {
    ((TextView)findViewById(R.id.welcome_message)).setText(getString(R.string.update_message));
  }
  loadFragment=(LoadAllDataTaskFragment)getFragmentManager().findFragmentByTag(LOAD_FRAGMENT_TAG);
  if (loadFragment != null) {
    viewPager.setCurrentItem(1,false);
  }
}