Program: 68972
Project: 68972
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  mainViewModel=ViewModelProviders.of(this).get(MainViewModel.class);
  user=mainViewModel.getUserLiveData();
  ActivityMainBinding binding=DataBindingUtil.setContentView(this,R.layout.activity_main);
  binding.setUser(user);
  Toolbar toolbar=findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  ButterKnife.bind(this);
  GoogleSignInOptions gso=new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN).requestEmail().build();
  mGoogleApiClient=new GoogleApiClient.Builder(this).enableAutoManage(this,this).addApi(Auth.GOOGLE_SIGN_IN_API,gso).build();
  profileDialog=ProfileDialog.newInstance(((dialog,which) -> logout()));
  calendar=Calendar.getInstance();
  simpleDateFormat=new SimpleDateFormat("String_Node_Str");
  String currentDate=simpleDateFormat.format(calendar.getTime());
  date.setText(currentDate);
  menuViewList=getMenuOptions();
  recyclerView.setLayoutManager(new GridLayoutManager(this,2));
  ItemOffsetDecoration itemDecoration=new ItemOffsetDecoration(this,R.dimen.item_offset);
  recyclerView.addItemDecoration(itemDecoration);
  MainDashboardAdapter mainDashboardAdapter=new MainDashboardAdapter(this,menuViewList,(v,position) -> {
    MenuView role=menuViewList.get(position);
    String menuName=role.getName();
switch (menuName) {
case "String_Node_Str":
      Intent addMedicine=new Intent(getApplicationContext(),AddMedicineActivity.class);
    startActivity(addMedicine);
  break;
case "String_Node_Str":
break;
case "String_Node_Str":
break;
case "String_Node_Str":
break;
default :
Toast.makeText(MainActivity.this,"String_Node_Str",Toast.LENGTH_SHORT).show();
break;
}
}
);
recyclerView.setAdapter(mainDashboardAdapter);
DailyMedicineStatisticsAdapter dailyMedicineStatisticsAdapter=new DailyMedicineStatisticsAdapter(this,new ArrayList<>());
recyclerViewDailyMedicineStatistics.setLayoutManager(new LinearLayoutManager(this,LinearLayoutManager.HORIZONTAL,false));
PagerSnapHelper snapHelper=new PagerSnapHelper();
snapHelper.attachToRecyclerView(recyclerViewDailyMedicineStatistics);
recyclerViewDailyMedicineStatistics.addItemDecoration(new CirclePagerIndicatorDecoration());
recyclerViewDailyMedicineStatistics.setAdapter(dailyMedicineStatisticsAdapter);
MedicineViewModel medicineViewModel=ViewModelProviders.of(this).get(MedicineViewModel.class);
medicineViewModel.getMedicineList().observe(MainActivity.this,dailyMedicineStatisticsAdapter::addItems);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ActivityMainBinding binding=DataBindingUtil.setContentView(this,R.layout.activity_main);
  mainViewModel=ViewModelProviders.of(this).get(MainViewModel.class);
  user=mainViewModel.getUserLiveData();
  binding.setUser(user);
  Toolbar toolbar=findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  ButterKnife.bind(this);
  GoogleSignInOptions gso=new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN).requestEmail().build();
  mGoogleApiClient=new GoogleApiClient.Builder(this).enableAutoManage(this,this).addApi(Auth.GOOGLE_SIGN_IN_API,gso).build();
  profileDialog=ProfileDialog.newInstance(((dialog,which) -> logout()));
  calendar=Calendar.getInstance();
  simpleDateFormat=new SimpleDateFormat("String_Node_Str");
  String currentDate=simpleDateFormat.format(calendar.getTime());
  date.setText(currentDate);
  menuViewList=getMenuOptions();
  recyclerView.setLayoutManager(new GridLayoutManager(this,2));
  ItemOffsetDecoration itemDecoration=new ItemOffsetDecoration(this,R.dimen.item_offset);
  recyclerView.addItemDecoration(itemDecoration);
  MainDashboardAdapter mainDashboardAdapter=new MainDashboardAdapter(this,menuViewList,(v,position) -> {
    MenuView role=menuViewList.get(position);
    String menuName=role.getName();
switch (menuName) {
case "String_Node_Str":
      Intent addMedicine=new Intent(getApplicationContext(),AddMedicineActivity.class);
    startActivity(addMedicine);
  break;
case "String_Node_Str":
break;
case "String_Node_Str":
break;
case "String_Node_Str":
break;
default :
Toast.makeText(MainActivity.this,"String_Node_Str",Toast.LENGTH_SHORT).show();
break;
}
}
);
recyclerView.setAdapter(mainDashboardAdapter);
DailyMedicineStatisticsAdapter dailyMedicineStatisticsAdapter=new DailyMedicineStatisticsAdapter(this,new ArrayList<>());
recyclerViewDailyMedicineStatistics.setLayoutManager(new LinearLayoutManager(this,LinearLayoutManager.HORIZONTAL,false));
PagerSnapHelper snapHelper=new PagerSnapHelper();
snapHelper.attachToRecyclerView(recyclerViewDailyMedicineStatistics);
recyclerViewDailyMedicineStatistics.addItemDecoration(new CirclePagerIndicatorDecoration());
recyclerViewDailyMedicineStatistics.setAdapter(dailyMedicineStatisticsAdapter);
MedicineViewModel medicineViewModel=ViewModelProviders.of(this).get(MedicineViewModel.class);
medicineViewModel.getMedicineList().observe(MainActivity.this,dailyMedicineStatisticsAdapter::addItems);
}