Program: 28299
Project: 28299
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
  boolean customTheme=false;
  Bundle bundle=getIntent().getExtras();
  if (bundle != null) {
    int themeId=bundle.getInt(Libs.BUNDLE_THEME,-1);
    if (themeId != -1) {
      customTheme=true;
      setTheme(themeId);
    }
  }
  if (!customTheme) {
    setTheme(R.style.Theme_AppCompat_NoActionBar);
  }
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_opensource);
  String title="String_Node_Str";
  if (bundle != null) {
    title=bundle.getString(Libs.BUNDLE_TITLE);
  }
  LibsFragment fragment=new LibsFragment();
  fragment.setArguments(bundle);
  Toolbar toolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  ActionBar ab=getSupportActionBar();
  if (ab != null) {
    if (bundle != null && bundle.containsKey(Libs.BUNDLE_COLORS)) {
      Colors colors=bundle.getParcelable(Libs.BUNDLE_COLORS);
      if (colors != null) {
        ab.setBackgroundDrawable(new ColorDrawable(colors.appBarColor));
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
          getWindow().setStatusBarColor(colors.statusBarColor);
        }
      }
 else {
        ab.setBackgroundDrawable(null);
      }
    }
    ab.setDisplayHomeAsUpEnabled(true);
    if (TextUtils.isEmpty(title)) {
      ab.setDisplayShowTitleEnabled(false);
    }
 else {
      ab.setDisplayShowTitleEnabled(true);
      ab.setTitle(title);
    }
    ab.setDisplayUseLogoEnabled(true);
  }
  FragmentManager fragmentManager=getSupportFragmentManager();
  fragmentManager.beginTransaction().replace(R.id.frame_container,fragment).commit();
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
  boolean customTheme=false;
  Bundle bundle=getIntent().getExtras();
  if (bundle != null) {
    int themeId=bundle.getInt(Libs.BUNDLE_THEME,-1);
    if (themeId != -1) {
      customTheme=true;
      setTheme(themeId);
    }
  }
  if (!customTheme) {
    setTheme(R.style.Theme_AppCompat_NoActionBar);
  }
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_opensource);
  String title="String_Node_Str";
  if (bundle != null) {
    title=bundle.getString(Libs.BUNDLE_TITLE);
  }
  LibsFragment fragment=new LibsFragment();
  fragment.setArguments(bundle);
  Toolbar toolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  ActionBar ab=getSupportActionBar();
  if (ab != null) {
    if (bundle != null && bundle.containsKey(Libs.BUNDLE_COLORS)) {
      Colors colors=(Colors)bundle.getSerializable(Libs.BUNDLE_COLORS);
      if (colors != null) {
        ab.setBackgroundDrawable(new ColorDrawable(colors.appBarColor));
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
          getWindow().setStatusBarColor(colors.statusBarColor);
        }
      }
 else {
        ab.setBackgroundDrawable(null);
      }
    }
    ab.setDisplayHomeAsUpEnabled(true);
    if (TextUtils.isEmpty(title)) {
      ab.setDisplayShowTitleEnabled(false);
    }
 else {
      ab.setDisplayShowTitleEnabled(true);
      ab.setTitle(title);
    }
    ab.setDisplayUseLogoEnabled(true);
  }
  FragmentManager fragmentManager=getSupportFragmentManager();
  fragmentManager.beginTransaction().replace(R.id.frame_container,fragment).commit();
}