Program: 171754
Project: 171754
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,@Nullable ViewGroup container,@Nullable Bundle savedInstanceState){
  final View view=inflater.inflate(R.layout.fragment_browser,container,false);
  videoContainer=(ViewGroup)view.findViewById(R.id.video_container);
  browserContainer=view.findViewById(R.id.browser_container);
  urlView=(TextView)view.findViewById(R.id.display_url);
  backgroundView=view.findViewById(R.id.background);
  backgroundTransition=(TransitionDrawable)backgroundView.getBackground();
  final View searchBtn=view.findViewById(R.id.btn_search);
  final View homeBtn=view.findViewById(R.id.btn_tab_tray);
  final View menuBtn=view.findViewById(R.id.btn_menu);
  final View captureBtn=view.findViewById(R.id.btn_capture);
  if (searchBtn != null) {
    searchBtn.setOnClickListener(this);
  }
  if (homeBtn != null) {
    homeBtn.setOnClickListener(this);
  }
  if (menuBtn != null) {
    menuBtn.setOnClickListener(this);
  }
  if (menuBtn != null) {
    captureBtn.setOnClickListener(this);
  }
  siteIdentity=(ImageView)view.findViewById(R.id.site_identity);
  progressView=(AnimatedProgressBar)view.findViewById(R.id.progress);
  if (BrowsingSession.getInstance().isCustomTab()) {
    initialiseCustomTabUi(view);
  }
 else {
    initialiseNormalBrowserUi();
  }
  webViewSlot=(ViewGroup)view.findViewById(R.id.webview_slot);
  Activity activity=getActivity();
  if (activity instanceof TabsSessionHost) {
    tabsSession=((TabsSessionHost)activity).getTabsSession();
  }
 else {
    throw new RuntimeException("String_Node_Str");
  }
  final TabsContentListener listener=new TabsContentListener();
  tabsSession.setTabsViewListener(listener);
  tabsSession.setTabsChromeListener(listener);
  tabsSession.setDownloadCallback(downloadCallback);
  return view;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,@Nullable ViewGroup container,@Nullable Bundle savedInstanceState){
  final View view=inflater.inflate(R.layout.fragment_browser,container,false);
  videoContainer=(ViewGroup)view.findViewById(R.id.video_container);
  browserContainer=view.findViewById(R.id.browser_container);
  urlView=(TextView)view.findViewById(R.id.display_url);
  backgroundView=view.findViewById(R.id.background);
  backgroundTransition=(TransitionDrawable)backgroundView.getBackground();
  final View searchBtn=view.findViewById(R.id.btn_search);
  final View homeBtn=view.findViewById(R.id.btn_tab_tray);
  final View menuBtn=view.findViewById(R.id.btn_menu);
  final View captureBtn=view.findViewById(R.id.btn_capture);
  if (searchBtn != null) {
    searchBtn.setOnClickListener(this);
  }
  if (homeBtn != null) {
    homeBtn.setOnClickListener(this);
  }
  if (menuBtn != null) {
    menuBtn.setOnClickListener(this);
  }
  if (captureBtn != null) {
    captureBtn.setOnClickListener(this);
  }
  siteIdentity=(ImageView)view.findViewById(R.id.site_identity);
  progressView=(AnimatedProgressBar)view.findViewById(R.id.progress);
  if (BrowsingSession.getInstance().isCustomTab()) {
    initialiseCustomTabUi(view);
  }
 else {
    initialiseNormalBrowserUi();
  }
  webViewSlot=(ViewGroup)view.findViewById(R.id.webview_slot);
  Activity activity=getActivity();
  if (activity instanceof TabsSessionHost) {
    tabsSession=((TabsSessionHost)activity).getTabsSession();
  }
 else {
    throw new RuntimeException("String_Node_Str");
  }
  final TabsContentListener listener=new TabsContentListener();
  tabsSession.setTabsViewListener(listener);
  tabsSession.setTabsChromeListener(listener);
  tabsSession.setDownloadCallback(downloadCallback);
  return view;
}