Program: 116984
Project: 116984
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  AppConfig appConfig=AppConfig.getInstance(this);
  GoNativeApplication application=(GoNativeApplication)getApplication();
  setScreenOrientationPreference();
  if (appConfig.keepScreenOn) {
    getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
  }
  this.hideWebviewAlpha=appConfig.hideWebviewAlpha;
  super.onCreate(savedInstanceState);
  isRoot=getIntent().getBooleanExtra("String_Node_Str",true);
  parentUrlLevel=getIntent().getIntExtra("String_Node_Str",-1);
  if (isRoot) {
    boolean isFromLauncher=getIntent().hasCategory(Intent.CATEGORY_LAUNCHER);
    boolean isFromRecents=(getIntent().getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) != 0;
    boolean noSplash=getIntent().getBooleanExtra("String_Node_Str",false);
    if (!noSplash && isFromLauncher && !isFromRecents) {
      showSplashScreen(appConfig.showSplashMaxTime,appConfig.showSplashForceTime);
    }
    File cachePath=new File(getCacheDir(),webviewCacheSubdir);
    if (!cachePath.mkdirs()) {
      Log.v(TAG,"String_Node_Str" + cachePath.toString() + "String_Node_Str");
    }
    File databasePath=new File(getCacheDir(),webviewDatabaseSubdir);
    if (databasePath.mkdirs()) {
      Log.v(TAG,"String_Node_Str" + databasePath.toString() + "String_Node_Str");
    }
    UrlInspector.getInstance().init(this);
    ConfigUpdater configUpdater=new ConfigUpdater(this);
    configUpdater.registerEvent();
    this.registrationManager=application.getRegistrationManager();
  }
  this.loginManager=application.getLoginManager();
  application.getWebViewPool().init(this);
  cm=(ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE);
  if (isRoot && AppConfig.getInstance(this).showNavigationMenu)   setContentView(R.layout.activity_gonative);
 else   setContentView(R.layout.activity_gonative_nonav);
  mProgress=findViewById(R.id.progress);
  this.fullScreenLayout=findViewById(R.id.fullscreen);
  swipeRefresh=findViewById(R.id.swipe_refresh);
  swipeRefresh.setEnabled(appConfig.pullToRefresh);
  swipeRefresh.setOnRefreshListener(this);
  swipeRefresh.setCanChildScrollUpCallback(new MySwipeRefreshLayout.CanChildScrollUpCallback(){
    @Override public boolean canSwipeRefreshChildScrollUp(){
      return mWebview.getScrollY() > 0;
    }
  }
);
  if (appConfig.pullToRefreshColor != null) {
    swipeRefresh.setColorSchemeColors(appConfig.pullToRefreshColor);
  }
  this.webviewOverlay=findViewById(R.id.webviewOverlay);
  this.mWebview=findViewById(R.id.webview);
  setupWebview(this.mWebview);
  if (isRoot && AppConfig.getInstance(this).showNavigationMenu) {
    Spinner profileSpinner=findViewById(R.id.profile_picker);
    profilePicker=new ProfilePicker(this,profileSpinner);
    Spinner segmentedSpinner=findViewById(R.id.segmented_control);
    new SegmentedController(this,segmentedSpinner);
  }
  CookieSyncManager.createInstance(getApplicationContext());
  CookieHandler.setDefault(new WebkitCookieManagerProxy());
  this.postLoadJavascript=getIntent().getStringExtra("String_Node_Str");
  this.postLoadJavascriptForRefresh=this.postLoadJavascript;
  this.previousWebviewStates=new Stack<>();
  ViewPager pager=findViewById(R.id.view_pager);
  this.slidingTabStrip=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();
  if (!appConfig.showActionBar && getSupportActionBar() != null) {
    getSupportActionBar().hide();
  }
  this.actionManager=new ActionManager(this);
  Intent intent=getIntent();
  String url=null;
  String targetUrl=intent.getStringExtra(INTENT_TARGET_URL);
  if (targetUrl != null && !targetUrl.isEmpty()) {
    url=targetUrl;
  }
  if (Intent.ACTION_VIEW.equals(intent.getAction())) {
    Uri uri=intent.getData();
    if (uri != null && (uri.getScheme().endsWith("String_Node_Str") || uri.getScheme().endsWith("String_Node_Str"))) {
      Uri.Builder builder=uri.buildUpon();
      if (uri.getScheme().endsWith("String_Node_Str")) {
        builder.scheme("String_Node_Str");
      }
 else       if (uri.getScheme().endsWith("String_Node_Str")) {
        builder.scheme("String_Node_Str");
      }
      url=builder.build().toString();
    }
 else {
      url=intent.getDataString();
    }
  }
  if (url == null && savedInstanceState != null)   url=savedInstanceState.getString("String_Node_Str");
  if (url == null && isRoot)   url=appConfig.initialUrl;
  if (url == null)   url=intent.getStringExtra("String_Node_Str");
  if (url != null) {
    if (LeanWebView.isCrosswalk() && appConfig.usesGeolocation) {
      final String urlLoadAfterLocation=url;
      this.getRuntimeGeolocationPermission(new GeolocationPermissionCallback(){
        @Override public void onResult(        boolean granted){
          mWebview.loadUrl(urlLoadAfterLocation);
        }
      }
);
    }
 else {
      this.mWebview.loadUrl(url);
    }
  }
 else   if (intent.getBooleanExtra(EXTRA_WEBVIEW_WINDOW_OPEN,false)) {
  }
 else {
    Log.e(TAG,"String_Node_Str");
  }
  if (isRoot && appConfig.facebookEnabled) {
    AppLinkData.fetchDeferredAppLinkData(this,new AppLinkData.CompletionHandler(){
      @Override public void onDeferredAppLinkDataFetched(      AppLinkData appLinkData){
        if (appLinkData == null)         return;
        Uri uri=appLinkData.getTargetUri();
        if (uri == null)         return;
        String url;
        if (uri.getScheme().endsWith("String_Node_Str") || uri.getScheme().endsWith("String_Node_Str")) {
          Uri.Builder builder=uri.buildUpon();
          if (uri.getScheme().endsWith("String_Node_Str")) {
            builder.scheme("String_Node_Str");
          }
 else           if (uri.getScheme().endsWith("String_Node_Str")) {
            builder.scheme("String_Node_Str");
          }
          url=builder.build().toString();
        }
 else {
          url=uri.toString();
        }
        if (url != null) {
          final String finalUrl=url;
          new Handler(MainActivity.this.getMainLooper()).post(new Runnable(){
            @Override public void run(){
              mWebview.loadUrl(finalUrl);
            }
          }
);
        }
      }
    }
);
  }
  if (isRoot && appConfig.showNavigationMenu) {
    mDrawerLayout=findViewById(R.id.drawer_layout);
    mDrawerView=findViewById(R.id.left_drawer);
    mDrawerList=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.addDrawerListener(mDrawerToggle);
    setupMenu();
    if (appConfig.loginDetectionUrl != null) {
      this.loginManager.addObserver(this);
    }
  }
  if (getSupportActionBar() != null) {
    if (!isRoot || appConfig.showNavigationMenu) {
      getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }
    showLogoInActionBar(appConfig.shouldShowNavigationTitleImageForUrl(url));
  }
  if (mDrawerView != null && AppConfig.getInstance(this).sidebarBackgroundColor != null) {
    mDrawerView.setBackgroundColor(AppConfig.getInstance(this).sidebarBackgroundColor);
  }
  LocalBroadcastManager.getInstance(this).registerReceiver(new BroadcastReceiver(){
    @Override public void onReceive(    Context context,    Intent intent){
      if (AppConfig.PROCESSED_NAVIGATION_TITLES.equals(intent.getAction())) {
        String url=mWebview.getUrl();
        if (url == null)         return;
        String title=titleForUrl(mWebview.getUrl());
        if (title == null)         return;
        setTitle(title);
      }
    }
  }
,new IntentFilter(AppConfig.PROCESSED_NAVIGATION_TITLES));
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  AppConfig appConfig=AppConfig.getInstance(this);
  GoNativeApplication application=(GoNativeApplication)getApplication();
  setScreenOrientationPreference();
  if (appConfig.keepScreenOn) {
    getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
  }
  this.hideWebviewAlpha=appConfig.hideWebviewAlpha;
  super.onCreate(savedInstanceState);
  isRoot=getIntent().getBooleanExtra("String_Node_Str",true);
  parentUrlLevel=getIntent().getIntExtra("String_Node_Str",-1);
  if (isRoot) {
    boolean isFromLauncher=getIntent().hasCategory(Intent.CATEGORY_LAUNCHER);
    boolean isFromRecents=(getIntent().getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) != 0;
    boolean noSplash=getIntent().getBooleanExtra("String_Node_Str",false);
    if (!noSplash && isFromLauncher && !isFromRecents) {
      showSplashScreen(appConfig.showSplashMaxTime,appConfig.showSplashForceTime);
    }
    File cachePath=new File(getCacheDir(),webviewCacheSubdir);
    if (!cachePath.mkdirs()) {
      Log.v(TAG,"String_Node_Str" + cachePath.toString() + "String_Node_Str");
    }
    File databasePath=new File(getCacheDir(),webviewDatabaseSubdir);
    if (databasePath.mkdirs()) {
      Log.v(TAG,"String_Node_Str" + databasePath.toString() + "String_Node_Str");
    }
    UrlInspector.getInstance().init(this);
    ConfigUpdater configUpdater=new ConfigUpdater(this);
    configUpdater.registerEvent();
    this.registrationManager=application.getRegistrationManager();
  }
  this.loginManager=application.getLoginManager();
  application.getWebViewPool().init(this);
  cm=(ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE);
  if (isRoot && AppConfig.getInstance(this).showNavigationMenu)   setContentView(R.layout.activity_gonative);
 else   setContentView(R.layout.activity_gonative_nonav);
  mProgress=findViewById(R.id.progress);
  this.fullScreenLayout=findViewById(R.id.fullscreen);
  swipeRefresh=findViewById(R.id.swipe_refresh);
  swipeRefresh.setEnabled(appConfig.pullToRefresh);
  swipeRefresh.setOnRefreshListener(this);
  swipeRefresh.setCanChildScrollUpCallback(new MySwipeRefreshLayout.CanChildScrollUpCallback(){
    @Override public boolean canSwipeRefreshChildScrollUp(){
      return mWebview.getScrollY() > 0;
    }
  }
);
  if (appConfig.pullToRefreshColor != null) {
    swipeRefresh.setColorSchemeColors(appConfig.pullToRefreshColor);
  }
  this.webviewOverlay=findViewById(R.id.webviewOverlay);
  this.mWebview=findViewById(R.id.webview);
  setupWebview(this.mWebview);
  if (isRoot && AppConfig.getInstance(this).showNavigationMenu) {
    Spinner profileSpinner=findViewById(R.id.profile_picker);
    profilePicker=new ProfilePicker(this,profileSpinner);
    Spinner segmentedSpinner=findViewById(R.id.segmented_control);
    new SegmentedController(this,segmentedSpinner);
  }
  CookieSyncManager.createInstance(getApplicationContext());
  CookieHandler.setDefault(new WebkitCookieManagerProxy());
  this.postLoadJavascript=getIntent().getStringExtra("String_Node_Str");
  this.postLoadJavascriptForRefresh=this.postLoadJavascript;
  this.previousWebviewStates=new Stack<>();
  ViewPager pager=findViewById(R.id.view_pager);
  this.slidingTabStrip=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();
  if (!appConfig.showActionBar && getSupportActionBar() != null) {
    getSupportActionBar().hide();
  }
  this.actionManager=new ActionManager(this);
  Intent intent=getIntent();
  String url=null;
  String targetUrl=intent.getStringExtra(INTENT_TARGET_URL);
  if (targetUrl != null && !targetUrl.isEmpty()) {
    url=targetUrl;
  }
  if (Intent.ACTION_VIEW.equals(intent.getAction())) {
    Uri uri=intent.getData();
    if (uri != null && (uri.getScheme().endsWith("String_Node_Str") || uri.getScheme().endsWith("String_Node_Str"))) {
      Uri.Builder builder=uri.buildUpon();
      if (uri.getScheme().endsWith("String_Node_Str")) {
        builder.scheme("String_Node_Str");
      }
 else       if (uri.getScheme().endsWith("String_Node_Str")) {
        builder.scheme("String_Node_Str");
      }
      url=builder.build().toString();
    }
 else {
      url=intent.getDataString();
    }
  }
  if (url == null && savedInstanceState != null)   url=savedInstanceState.getString("String_Node_Str");
  if (url == null && isRoot)   url=appConfig.initialUrl;
  if (url == null)   url=intent.getStringExtra("String_Node_Str");
  if (url != null) {
    if (LeanWebView.isCrosswalk() && appConfig.usesGeolocation) {
      final String urlLoadAfterLocation=url;
      this.getRuntimeGeolocationPermission(new GeolocationPermissionCallback(){
        @Override public void onResult(        boolean granted){
          mWebview.loadUrl(urlLoadAfterLocation);
        }
      }
);
    }
 else {
      this.mWebview.loadUrl(url);
    }
  }
 else   if (intent.getBooleanExtra(EXTRA_WEBVIEW_WINDOW_OPEN,false)) {
  }
 else {
    Log.e(TAG,"String_Node_Str");
  }
  if (isRoot && appConfig.facebookEnabled) {
    AppLinkData.fetchDeferredAppLinkData(this,new AppLinkData.CompletionHandler(){
      @Override public void onDeferredAppLinkDataFetched(      AppLinkData appLinkData){
        if (appLinkData == null)         return;
        Uri uri=appLinkData.getTargetUri();
        if (uri == null)         return;
        String url;
        if (uri.getScheme().endsWith("String_Node_Str") || uri.getScheme().endsWith("String_Node_Str")) {
          Uri.Builder builder=uri.buildUpon();
          if (uri.getScheme().endsWith("String_Node_Str")) {
            builder.scheme("String_Node_Str");
          }
 else           if (uri.getScheme().endsWith("String_Node_Str")) {
            builder.scheme("String_Node_Str");
          }
          url=builder.build().toString();
        }
 else {
          url=uri.toString();
        }
        if (url != null) {
          final String finalUrl=url;
          new Handler(MainActivity.this.getMainLooper()).post(new Runnable(){
            @Override public void run(){
              mWebview.loadUrl(finalUrl);
            }
          }
);
        }
      }
    }
);
  }
  if (isRoot && appConfig.showNavigationMenu) {
    mDrawerLayout=findViewById(R.id.drawer_layout);
    mDrawerView=findViewById(R.id.left_drawer);
    mDrawerList=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.addDrawerListener(mDrawerToggle);
    setupMenu();
    if (appConfig.loginDetectionUrl != null) {
      this.loginManager.addObserver(this);
    }
  }
  if (getSupportActionBar() != null) {
    if (!isRoot || appConfig.showNavigationMenu) {
      getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }
    showLogoInActionBar(appConfig.shouldShowNavigationTitleImageForUrl(url));
  }
  if (mDrawerView != null && AppConfig.getInstance(this).sidebarBackgroundColor != null) {
    mDrawerView.setBackgroundColor(AppConfig.getInstance(this).sidebarBackgroundColor);
  }
  this.navigationTitlesChangedReceiver=new BroadcastReceiver(){
    @Override public void onReceive(    Context context,    Intent intent){
      if (AppConfig.PROCESSED_NAVIGATION_TITLES.equals(intent.getAction())) {
        String url=mWebview.getUrl();
        if (url == null)         return;
        String title=titleForUrl(mWebview.getUrl());
        if (title == null)         return;
        setTitle(title);
      }
    }
  }
;
  LocalBroadcastManager.getInstance(this).registerReceiver(this.navigationTitlesChangedReceiver,new IntentFilter(AppConfig.PROCESSED_NAVIGATION_TITLES));
}