Program: 36359
Project: 36359
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  DataHandler dat=new DataHandler(this);
  new ParseAPI(this).parseInit();
  if (dat.isNewUser()) {
    isActive=false;
    startActivity(new Intent(this,NewUser.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | IntentCompat.FLAG_ACTIVITY_CLEAR_TASK));
    overridePendingTransition(R.anim.enter,R.anim.exit);
  }
  setContentView(R.layout.activity_home);
  mTitle=mDrawerTitle=getTitle();
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  final Activity a=this;
  mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,R.drawable.ic_drawer,R.string.drawer_open,R.string.drawer_close){
    /** 
 * Called when a drawer has settled in a completely closed state. 
 */
    public void onDrawerClosed(    View view){
      super.onDrawerClosed(view);
      getSupportActionBar().setTitle(mTitle);
      ActivityCompat.invalidateOptionsMenu(a);
    }
    /** 
 * Called when a drawer has settled in a completely open state. 
 */
    public void onDrawerOpened(    View drawerView){
      super.onDrawerOpened(drawerView);
      getSupportActionBar().setTitle(mDrawerTitle);
      ActivityCompat.invalidateOptionsMenu(a);
    }
  }
;
  getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  getSupportActionBar().setHomeButtonEnabled(true);
  mDrawerList=(ListView)findViewById(R.id.left_drawer);
  mDrawerList.setAdapter(new DrawerListAdapter(this,titles,subtitle,imgs));
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerList.setOnItemClickListener(new DrawerItemClickListener());
  selectItem(dat.getDefUi());
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
    mNfcAdapter=NfcAdapter.getDefaultAdapter(this);
    if (mNfcAdapter != null) {
      hasNFC=true;
      mNfcPendingIntent=PendingIntent.getActivity(this,0,new Intent(this,getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP),0);
      IntentFilter ndefDetected=new IntentFilter(NfcAdapter.ACTION_NDEF_DISCOVERED);
      try {
        ndefDetected.addDataType("String_Node_Str");
      }
 catch (      IntentFilter.MalformedMimeTypeException e) {
      }
      mNdefExchangeFilters=new IntentFilter[]{ndefDetected};
    }
  }
  if (getIntent().getExtras() != null) {
    try {
      JSONObject data=new JSONObject(getIntent().getExtras().getString("String_Node_Str"));
      Log.i("String_Node_Str",data.toString());
      selectItem(9);
    }
 catch (    Exception ignore) {
    }
  }
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  DataHandler dat=new DataHandler(this);
  new ParseAPI(this).parseInit();
  if (dat.isNewUser()) {
    isActive=false;
    startActivity(new Intent(this,NewUser.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | IntentCompat.FLAG_ACTIVITY_CLEAR_TASK));
    overridePendingTransition(R.anim.enter,R.anim.exit);
  }
  if (BuildConfig.DEBUG) {
    GoogleAnalytics googleAnalytics=GoogleAnalytics.getInstance(getApplicationContext());
    googleAnalytics.setAppOptOut(true);
  }
  setContentView(R.layout.activity_home);
  mTitle=mDrawerTitle=getTitle();
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  final Activity a=this;
  mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,R.drawable.ic_drawer,R.string.drawer_open,R.string.drawer_close){
    /** 
 * Called when a drawer has settled in a completely closed state. 
 */
    public void onDrawerClosed(    View view){
      super.onDrawerClosed(view);
      getSupportActionBar().setTitle(mTitle);
      ActivityCompat.invalidateOptionsMenu(a);
    }
    /** 
 * Called when a drawer has settled in a completely open state. 
 */
    public void onDrawerOpened(    View drawerView){
      super.onDrawerOpened(drawerView);
      getSupportActionBar().setTitle(mDrawerTitle);
      ActivityCompat.invalidateOptionsMenu(a);
    }
  }
;
  getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  getSupportActionBar().setHomeButtonEnabled(true);
  mDrawerList=(ListView)findViewById(R.id.left_drawer);
  mDrawerList.setAdapter(new DrawerListAdapter(this,titles,subtitle,imgs));
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerList.setOnItemClickListener(new DrawerItemClickListener());
  selectItem(dat.getDefUi());
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
    mNfcAdapter=NfcAdapter.getDefaultAdapter(this);
    if (mNfcAdapter != null) {
      hasNFC=true;
      mNfcPendingIntent=PendingIntent.getActivity(this,0,new Intent(this,getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP),0);
      IntentFilter ndefDetected=new IntentFilter(NfcAdapter.ACTION_NDEF_DISCOVERED);
      try {
        ndefDetected.addDataType("String_Node_Str");
      }
 catch (      IntentFilter.MalformedMimeTypeException e) {
      }
      mNdefExchangeFilters=new IntentFilter[]{ndefDetected};
    }
  }
  if (getIntent().getExtras() != null) {
    try {
      JSONObject data=new JSONObject(getIntent().getExtras().getString("String_Node_Str"));
      Log.i("String_Node_Str",data.toString());
      selectItem(9);
    }
 catch (    Exception ignore) {
    }
  }
}