Program: 80030
Project: 80030
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  context=this;
  if (isStateExist == null) {
    NoteDBHelper db=new NoteDBHelper(context);
    isStateExist=String.valueOf(db.isPadExist());
  }
  if (findViewById(R.id.fragment_container) != null) {
    initDrawerControls();
    fragmentHandler=new FragmentHandler(this);
    boot=new Boot(this);
    if (savedInstanceState != null) {
      mPullToRefreshAttacher=new PullToRefreshAttacher(this);
      initDrawer(boot.getDrawerItems());
      return;
    }
    if (OpenERPAccountManager.hasAccounts(this) == false) {
      getActionBar().setDisplayHomeAsUpEnabled(false);
      getActionBar().setHomeButtonEnabled(false);
      lockDrawer(true);
      Fragment fragment=new AccountFragment();
      fragmentHandler.setBackStack(true,null);
      fragmentHandler.startNewFragmnet(fragment);
      return;
    }
 else {
      lockDrawer(false);
      Intent intent=getIntent();
      boolean reqForNewAccount=intent.getBooleanExtra("String_Node_Str",false);
      if (OpenERPAccountManager.isAnyUser(this) && !reqForNewAccount) {
        initDrawer(boot.getDrawerItems());
        mPullToRefreshAttacher=new PullToRefreshAttacher(this);
        if (savedInstanceState != null) {
          return;
        }
      }
 else {
        if (reqForNewAccount) {
          getActionBar().setDisplayHomeAsUpEnabled(false);
          getActionBar().setHomeButtonEnabled(false);
          Fragment fragment=new AccountFragment();
          fragmentHandler.startNewFragmnet(fragment);
          return;
        }
 else {
          Dialog dialog=onCreateDialogSingleChoice();
          dialog.setCancelable(false);
          dialog.show();
        }
      }
    }
  }
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  context=this;
  if (isStateExist == null) {
    NoteDBHelper db=new NoteDBHelper(context);
    isStateExist=String.valueOf(db.isPadExist());
  }
  if (findViewById(R.id.fragment_container) != null) {
    initDrawerControls();
    fragmentHandler=new FragmentHandler(this);
    boot=new Boot(this);
    if (savedInstanceState != null) {
      mDrawerItemSelectedPosition=savedInstanceState.getInt("String_Node_Str");
      mPullToRefreshAttacher=new PullToRefreshAttacher(this);
      initDrawer(boot.getDrawerItems());
      return;
    }
    if (OpenERPAccountManager.hasAccounts(this) == false) {
      getActionBar().setDisplayHomeAsUpEnabled(false);
      getActionBar().setHomeButtonEnabled(false);
      lockDrawer(true);
      Fragment fragment=new AccountFragment();
      fragmentHandler.setBackStack(true,null);
      fragmentHandler.startNewFragmnet(fragment);
      return;
    }
 else {
      lockDrawer(false);
      Intent intent=getIntent();
      boolean reqForNewAccount=intent.getBooleanExtra("String_Node_Str",false);
      if (OpenERPAccountManager.isAnyUser(this) && !reqForNewAccount) {
        initDrawer(boot.getDrawerItems());
        mPullToRefreshAttacher=new PullToRefreshAttacher(this);
        if (savedInstanceState != null) {
          return;
        }
      }
 else {
        if (reqForNewAccount) {
          getActionBar().setDisplayHomeAsUpEnabled(false);
          getActionBar().setHomeButtonEnabled(false);
          Fragment fragment=new AccountFragment();
          fragmentHandler.startNewFragmnet(fragment);
          return;
        }
 else {
          Dialog dialog=onCreateDialogSingleChoice();
          dialog.setCancelable(false);
          dialog.show();
        }
      }
    }
  }
}