Program: 161501
Project: 161501
Buggy source:
/** 
 * Can either receive a date or a boolean cancelNotifications value. This way other activities can close the currently opened notifications and it is possible to schedule dates, where the alarm has to check for favorite dishes.
 * @param context
 * @param extra Extra can either be "cancelNotifications" or a date, when the alarm should check, if there are any favorite dishes at a given date.
 */
@Override public void onReceive(Context context,Intent extra){
  NotificationManager mNotificationManager=(NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
  cancelFoodNotifications(mNotificationManager);
  if (extra.getBooleanExtra("String_Node_Str",false)) {
    return;
  }
  String triggeredAt=extra.getStringExtra("String_Node_Str");
  Calendar triggeredCal=Calendar.getInstance();
  triggeredCal.setTime(Utils.getDate(triggeredAt));
  HashSet<FavoriteFoodAlarmEntry> scheduledNow=FavoriteFoodAlarmEntry.getEntriesByCalendar(triggeredCal);
  if (scheduledNow == null) {
    return;
  }
  CafeteriaManager cmm=new CafeteriaManager(context);
  int i=0;
  for (  FavoriteFoodAlarmEntry fae : scheduledNow) {
    activeNotifications.add(i);
    String mensaName=cmm.getMensaNameFromId(fae.getMensaId());
    Intent intent=new Intent(context,CafeteriaActivity.class);
    intent.putExtra(Const.MENSA_FOR_FAVORITEDISH,fae.getMensaId());
    PendingIntent pi=PendingIntent.getActivity(context,fae.getMensaId(),intent,PendingIntent.FLAG_UPDATE_CURRENT);
    String message=mensaName + "String_Node_Str" + fae.getDishName();
    NotificationCompat.Builder mBuilder=new NotificationCompat.Builder(context).setSmallIcon(R.mipmap.ic_launcher).setContentTitle("String_Node_Str").setStyle(new NotificationCompat.BigTextStyle().bigText(message)).setContentText(message).setAutoCancel(true);
    mBuilder.setContentIntent(pi);
    mBuilder.setDefaults(Notification.DEFAULT_SOUND);
    mBuilder.setAutoCancel(true);
    mNotificationManager.notify(NOTIFICATION_TAG,i,mBuilder.build());
    i++;
  }
}

Fixed version (ground truth):
/** 
 * Can either receive a date or a boolean cancelNotifications value. This way other activities can close the currently opened notifications and it is possible to schedule dates, where the alarm has to check for favorite dishes.
 * @param context
 * @param extra Extra can either be "cancelNotifications" or a date, when the alarm should check, if there are any favorite dishes at a given date.
 */
@Override public void onReceive(Context context,Intent extra){
  NotificationManager mNotificationManager=(NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
  cancelFoodNotifications(mNotificationManager);
  if (extra.getBooleanExtra("String_Node_Str",false)) {
    return;
  }
  String triggeredAt=extra.getStringExtra("String_Node_Str");
  Calendar triggeredCal=Calendar.getInstance();
  triggeredCal.setTime(Utils.getDate(triggeredAt));
  HashSet<FavoriteFoodAlarmEntry> scheduledNow=FavoriteFoodAlarmEntry.getEntriesByCalendar(triggeredCal);
  if (scheduledNow == null) {
    return;
  }
  CafeteriaManager cmm=new CafeteriaManager(context);
  int i=0;
  for (  FavoriteFoodAlarmEntry fae : scheduledNow) {
    activeNotifications.add(i);
    String mensaName=cmm.getMensaNameFromId(fae.getMensaId());
    Intent intent=new Intent(context,CafeteriaActivity.class);
    intent.putExtra(Const.MENSA_FOR_FAVORITEDISH,fae.getMensaId());
    PendingIntent pi=PendingIntent.getActivity(context,fae.getMensaId(),intent,PendingIntent.FLAG_UPDATE_CURRENT);
    NotificationCompat.Builder mBuilder=new NotificationCompat.Builder(context).setSmallIcon(R.mipmap.ic_launcher).setContentTitle(mensaName).setContentText(fae.getDishName()).setAutoCancel(true);
    mBuilder.setContentIntent(pi);
    mBuilder.setDefaults(Notification.DEFAULT_SOUND);
    mBuilder.setAutoCancel(true);
    mNotificationManager.notify(NOTIFICATION_TAG,i,mBuilder.build());
    i++;
  }
}