Program: 117010
Project: 117010
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  AppConfig appConfig=AppConfig.getInstance(this);
  super.onCreate(savedInstanceState);
  isRoot=getIntent().getBooleanExtra("String_Node_Str",true);
  parentUrlLevel=getIntent().getIntExtra("String_Node_Str",-1);
  if (isRoot) {
    File cachePath=new File(getCacheDir(),webviewCacheSubdir);
    cachePath.mkdirs();
    File databasePath=new File(getCacheDir(),webviewDatabaseSubdir);
    databasePath.mkdirs();
    UrlInspector.getInstance().init(this);
    ConfigUpdater configUpdater=new ConfigUpdater(this);
    configUpdater.updateConfig();
    configUpdater.registerEvent();
    if (appConfig.pushNotifications) {
      this.pushManager=new PushManager(this);
      this.pushManager.register();
    }
    WebViewPool.getInstance().init(this);
  }
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
    Map<String,Object> installation=Installation.getInfo(this);
    String dist=(String)installation.get("String_Node_Str");
    if (dist != null && (dist.equals("String_Node_Str") || dist.equals("String_Node_Str"))) {
      WebView.setWebContentsDebuggingEnabled(true);
    }
  }
  cm=(ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE);
  if (isRoot && AppConfig.getInstance(this).showNavigationMenu)   setContentView(R.layout.activity_gonative);
 else   setContentView(R.layout.activity_gonative_nonav);
  mProgress=(ProgressBar)findViewById(R.id.progress);
  LeanWebView wv=(LeanWebView)findViewById(R.id.webview);
  if (isRoot && AppConfig.getInstance(this).showNavigationMenu) {
    Spinner spinner=(Spinner)findViewById(R.id.profile_picker);
    profilePicker=new ProfilePicker(this,spinner);
  }
  CookieSyncManager.createInstance(getApplicationContext());
  CookieHandler.setDefault(new WebkitCookieManagerProxy());
  this.mWebview=wv;
  setupWebview(wv);
  this.postLoadJavascript=getIntent().getStringExtra("String_Node_Str");
  this.postLoadJavascriptForRefresh=this.postLoadJavascript;
  ViewPager pager=(ViewPager)findViewById(R.id.view_pager);
  this.slidingTabStrip=(PagerSlidingTabStrip)findViewById(R.id.tabs);
  this.tabManager=new TabManager(this,pager);
  pager.setAdapter(this.tabManager);
  this.slidingTabStrip.setViewPager(pager);
  this.slidingTabStrip.setTabClickListener(this.tabManager);
  if (appConfig.tabBarBackgroundColor != null)   this.slidingTabStrip.setBackgroundColor(appConfig.tabBarBackgroundColor);
  if (appConfig.tabBarTextColor != null)   this.slidingTabStrip.setTextColor(appConfig.tabBarTextColor);
  if (appConfig.tabBarIndicatorColor != null)   this.slidingTabStrip.setIndicatorColor(appConfig.tabBarIndicatorColor);
  hideTabs();
  this.actionManager=new ActionManager(this);
  String url=null;
  String targetUrl=getIntent().getStringExtra(INTENT_TARGET_URL);
  if (targetUrl != null && !targetUrl.isEmpty()) {
    url=targetUrl;
  }
  if (url == null && savedInstanceState != null)   url=savedInstanceState.getString("String_Node_Str");
  if (url == null && isRoot)   url=appConfig.initialUrl;
  if (url == null)   url=getIntent().getStringExtra("String_Node_Str");
  if (url != null) {
    wv.loadUrl(url);
  }
 else {
    Log.e(TAG,"String_Node_Str");
  }
  if (isRoot && appConfig.showNavigationMenu) {
    mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
    mDrawerView=findViewById(R.id.left_drawer);
    mDrawerList=(ExpandableListView)findViewById(R.id.drawer_list);
    mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow,GravityCompat.START);
    mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,R.string.drawer_open,R.string.drawer_close){
      public void onDrawerClosed(      View view){
        invalidateOptionsMenu();
      }
      public void onDrawerOpened(      View drawerView){
        invalidateOptionsMenu();
      }
    }
;
    mDrawerLayout.setDrawerListener(mDrawerToggle);
    setupMenu();
    if (appConfig.loginDetectionUrl != null) {
      LoginManager.getInstance().init(this);
      LoginManager.getInstance().addObserver(this);
    }
  }
  if (getSupportActionBar() != null) {
    if (!isRoot || AppConfig.getInstance(this).showNavigationMenu) {
      getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }
    showLogoInActionBar(appConfig.shouldShowNavigationTitleImageForUrl(url));
  }
  if (mDrawerView != null && AppConfig.getInstance(this).sidebarBackgroundColor != null) {
    mDrawerView.setBackgroundColor(AppConfig.getInstance(this).sidebarBackgroundColor);
  }
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  AppConfig appConfig=AppConfig.getInstance(this);
  super.onCreate(savedInstanceState);
  isRoot=getIntent().getBooleanExtra("String_Node_Str",true);
  parentUrlLevel=getIntent().getIntExtra("String_Node_Str",-1);
  if (isRoot) {
    File cachePath=new File(getCacheDir(),webviewCacheSubdir);
    cachePath.mkdirs();
    File databasePath=new File(getCacheDir(),webviewDatabaseSubdir);
    databasePath.mkdirs();
    UrlInspector.getInstance().init(this);
    ConfigUpdater configUpdater=new ConfigUpdater(this);
    configUpdater.updateConfig();
    configUpdater.registerEvent();
    if (appConfig.pushNotifications) {
      this.pushManager=new PushManager(this);
      this.pushManager.register();
    }
  }
  WebViewPool.getInstance().init(this);
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
    Map<String,Object> installation=Installation.getInfo(this);
    String dist=(String)installation.get("String_Node_Str");
    if (dist != null && (dist.equals("String_Node_Str") || dist.equals("String_Node_Str"))) {
      WebView.setWebContentsDebuggingEnabled(true);
    }
  }
  cm=(ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE);
  if (isRoot && AppConfig.getInstance(this).showNavigationMenu)   setContentView(R.layout.activity_gonative);
 else   setContentView(R.layout.activity_gonative_nonav);
  mProgress=(ProgressBar)findViewById(R.id.progress);
  LeanWebView wv=(LeanWebView)findViewById(R.id.webview);
  if (isRoot && AppConfig.getInstance(this).showNavigationMenu) {
    Spinner spinner=(Spinner)findViewById(R.id.profile_picker);
    profilePicker=new ProfilePicker(this,spinner);
  }
  CookieSyncManager.createInstance(getApplicationContext());
  CookieHandler.setDefault(new WebkitCookieManagerProxy());
  this.mWebview=wv;
  setupWebview(wv);
  this.postLoadJavascript=getIntent().getStringExtra("String_Node_Str");
  this.postLoadJavascriptForRefresh=this.postLoadJavascript;
  ViewPager pager=(ViewPager)findViewById(R.id.view_pager);
  this.slidingTabStrip=(PagerSlidingTabStrip)findViewById(R.id.tabs);
  this.tabManager=new TabManager(this,pager);
  pager.setAdapter(this.tabManager);
  this.slidingTabStrip.setViewPager(pager);
  this.slidingTabStrip.setTabClickListener(this.tabManager);
  if (appConfig.tabBarBackgroundColor != null)   this.slidingTabStrip.setBackgroundColor(appConfig.tabBarBackgroundColor);
  if (appConfig.tabBarTextColor != null)   this.slidingTabStrip.setTextColor(appConfig.tabBarTextColor);
  if (appConfig.tabBarIndicatorColor != null)   this.slidingTabStrip.setIndicatorColor(appConfig.tabBarIndicatorColor);
  hideTabs();
  this.actionManager=new ActionManager(this);
  String url=null;
  String targetUrl=getIntent().getStringExtra(INTENT_TARGET_URL);
  if (targetUrl != null && !targetUrl.isEmpty()) {
    url=targetUrl;
  }
  if (url == null && savedInstanceState != null)   url=savedInstanceState.getString("String_Node_Str");
  if (url == null && isRoot)   url=appConfig.initialUrl;
  if (url == null)   url=getIntent().getStringExtra("String_Node_Str");
  if (url != null) {
    wv.loadUrl(url);
  }
 else {
    Log.e(TAG,"String_Node_Str");
  }
  if (isRoot && appConfig.showNavigationMenu) {
    mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
    mDrawerView=findViewById(R.id.left_drawer);
    mDrawerList=(ExpandableListView)findViewById(R.id.drawer_list);
    mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow,GravityCompat.START);
    mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,R.string.drawer_open,R.string.drawer_close){
      public void onDrawerClosed(      View view){
        invalidateOptionsMenu();
      }
      public void onDrawerOpened(      View drawerView){
        invalidateOptionsMenu();
      }
    }
;
    mDrawerLayout.setDrawerListener(mDrawerToggle);
    setupMenu();
    if (appConfig.loginDetectionUrl != null) {
      LoginManager.getInstance().init(this);
      LoginManager.getInstance().addObserver(this);
    }
  }
  if (getSupportActionBar() != null) {
    if (!isRoot || AppConfig.getInstance(this).showNavigationMenu) {
      getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }
    showLogoInActionBar(appConfig.shouldShowNavigationTitleImageForUrl(url));
  }
  if (mDrawerView != null && AppConfig.getInstance(this).sidebarBackgroundColor != null) {
    mDrawerView.setBackgroundColor(AppConfig.getInstance(this).sidebarBackgroundColor);
  }
}