Program: 77976
Project: 77976
Buggy source:
/** 
 * Starts the WindowManager instance, which will open the stages and prepare all necessary scenes.
 * @param mainStage the MainStage, which will be used to show the Scenes that the users directly interact with.
 * @param applicationContext the applicationContext generated in the MainApplication
 * @throws IOException
 */
public void start(Stage mainStage,ApplicationContext applicationContext) throws IOException {
  this.mainStage=mainStage;
  this.applicationContext=applicationContext;
  double screenWidth=Screen.getPrimary().getBounds().getWidth();
  double screenHeight=Screen.getPrimary().getBounds().getHeight();
  LOGGER.info("String_Node_Str" + screenWidth + "String_Node_Str"+ screenHeight);
  setFontSize(screenWidth,screenHeight);
  if (fontSize == 0) {
    LOGGER.debug("String_Node_Str");
    fontSize=16;
  }
  SpringFXMLLoader.FXMLWrapper<Object,FullScreenImageController> pictureWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",FullScreenImageController.class);
  Parent root=(Parent)pictureWrapper.getLoadedObject();
  URL cssf=this.getClass().getResource("String_Node_Str");
  LOGGER.info("String_Node_Str" + cssf);
  root.setStyle("String_Node_Str" + fontSize + "String_Node_Str");
  root.getStylesheets().add(cssf.toExternalForm());
  this.pictureFullScene=new Scene(root,screenWidth,screenHeight);
  this.pictureController=pictureWrapper.getController();
  SpringFXMLLoader.FXMLWrapper<Object,MainFrameController> mfWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",MainFrameController.class);
  Parent parentmain=(Parent)mfWrapper.getLoadedObject();
  URL css=this.getClass().getResource("String_Node_Str");
  LOGGER.info("String_Node_Str" + css);
  int sice=(int)(fontSize * 3);
  parentmain.setStyle("String_Node_Str" + sice + "String_Node_Str");
  parentmain.getStylesheets().add(css.toExternalForm());
  this.mainScene=new Scene(parentmain,screenWidth,screenHeight);
  SpringFXMLLoader.FXMLWrapper<Object,ShootingAdminController> shootingWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",ShootingAdminController.class);
  Parent parentsf=(Parent)shootingWrapper.getLoadedObject();
  URL csssf=this.getClass().getResource("String_Node_Str");
  LOGGER.info("String_Node_Str" + csssf);
  parentsf.setStyle("String_Node_Str" + fontSize + "String_Node_Str");
  parentsf.getStylesheets().add(csssf.toExternalForm());
  this.shootingScene=new Scene(parentsf,screenWidth,screenHeight);
  this.shootingAdminController=shootingWrapper.getController();
  SpringFXMLLoader.FXMLWrapper<Object,ProfileFrameController> profileWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",ProfileFrameController.class);
  this.profileScene=new Scene((Parent)profileWrapper.getLoadedObject(),screenWidth,screenHeight);
  SpringFXMLLoader.FXMLWrapper<Object,SettingFrameController> settingWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",SettingFrameController.class);
  Parent parentsett=(Parent)settingWrapper.getLoadedObject();
  this.settingScene=new Scene(parentsett,screenWidth,screenHeight);
  SpringFXMLLoader.FXMLWrapper<Object,LoginFrameController> adminLoginWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",LoginFrameController.class);
  Parent parentad=(Parent)adminLoginWrapper.getLoadedObject();
  URL cssad=this.getClass().getResource("String_Node_Str");
  LOGGER.info("String_Node_Str" + cssad);
  parentad.setStyle("String_Node_Str" + fontSize + "String_Node_Str");
  parentad.getStylesheets().add(cssad.toExternalForm());
  this.adminLoginScene=new Scene(parentad,screenWidth,screenHeight);
  SpringFXMLLoader.FXMLWrapper<Object,MiniaturFrameController> miniWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",MiniaturFrameController.class);
  Parent parentmin=(Parent)miniWrapper.getLoadedObject();
  URL csssett=this.getClass().getResource("String_Node_Str");
  LOGGER.info("String_Node_Str" + csssett);
  parentmin.setStyle("String_Node_Str" + fontSize + "String_Node_Str");
  parentmin.getStylesheets().add(csssett.toExternalForm());
  this.miniaturScene=new Scene(parentmin,screenWidth,screenHeight);
  SpringFXMLLoader.FXMLWrapper<Object,CostumerFrameController> costumerWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",CostumerFrameController.class);
  Parent parentcos=(Parent)costumerWrapper.getLoadedObject();
  URL csscos=this.getClass().getResource("String_Node_Str");
  LOGGER.info("String_Node_Str" + csscos);
  parentcos.setStyle("String_Node_Str" + fontSize * 3 + "String_Node_Str");
  parentcos.getStylesheets().add(csscos.toExternalForm());
  this.customerScene=new Scene(parentcos,screenWidth,screenHeight);
  SpringFXMLLoader.FXMLWrapper<Object,KameraFilterController> kameraFilterFXMLWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",KameraFilterController.class);
  this.kamerafilterScene=new Scene((Parent)kameraFilterFXMLWrapper.getLoadedObject(),screenWidth,screenHeight);
  try {
    miniWrapper.getController().init(mainStage);
  }
 catch (  ServiceException e) {
    LOGGER.error("String_Node_Str",e);
  }
  this.mainStage.setTitle("String_Node_Str");
  if (activeShootingAvailable) {
    showAdminLogin(SHOW_CUSTOMERSCENE,END_APPLICATION);
  }
 else {
    showAdminLogin(SHOW_MAINSCENE,END_APPLICATION);
  }
  this.mainStage.setFullScreen(true);
  this.mainStage.show();
  this.mainStage.setFullScreenExitHint("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Starts the WindowManager instance, which will open the stages and prepare all necessary scenes.
 * @param mainStage the MainStage, which will be used to show the Scenes that the users directly interact with.
 * @param applicationContext the applicationContext generated in the MainApplication
 * @throws IOException
 */
public void start(Stage mainStage,ApplicationContext applicationContext) throws IOException {
  this.mainStage=mainStage;
  this.applicationContext=applicationContext;
  double screenWidth=Screen.getPrimary().getBounds().getWidth();
  double screenHeight=Screen.getPrimary().getBounds().getHeight();
  LOGGER.info("String_Node_Str" + screenWidth + "String_Node_Str"+ screenHeight);
  setFontSize(screenWidth,screenHeight);
  if (fontSize == 0) {
    LOGGER.debug("String_Node_Str");
    fontSize=16;
  }
  SpringFXMLLoader.FXMLWrapper<Object,FullScreenImageController> pictureWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",FullScreenImageController.class);
  Parent root=(Parent)pictureWrapper.getLoadedObject();
  URL cssf=this.getClass().getResource("String_Node_Str");
  LOGGER.info("String_Node_Str" + cssf);
  root.setStyle("String_Node_Str" + fontSize + "String_Node_Str");
  root.getStylesheets().add(cssf.toExternalForm());
  this.pictureFullScene=new Scene(root,screenWidth,screenHeight);
  this.pictureController=pictureWrapper.getController();
  SpringFXMLLoader.FXMLWrapper<Object,MainFrameController> mfWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",MainFrameController.class);
  Parent parentmain=(Parent)mfWrapper.getLoadedObject();
  URL css=this.getClass().getResource("String_Node_Str");
  LOGGER.info("String_Node_Str" + css);
  int sice=(int)(fontSize * 3);
  parentmain.setStyle("String_Node_Str" + sice + "String_Node_Str");
  parentmain.getStylesheets().add(css.toExternalForm());
  this.mainScene=new Scene(parentmain,screenWidth,screenHeight);
  SpringFXMLLoader.FXMLWrapper<Object,ShootingAdminController> shootingWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",ShootingAdminController.class);
  Parent parentsf=(Parent)shootingWrapper.getLoadedObject();
  URL csssf=this.getClass().getResource("String_Node_Str");
  LOGGER.info("String_Node_Str" + csssf);
  parentsf.setStyle("String_Node_Str" + fontSize + "String_Node_Str");
  parentsf.getStylesheets().add(csssf.toExternalForm());
  this.shootingScene=new Scene(parentsf,screenWidth,screenHeight);
  this.shootingAdminController=shootingWrapper.getController();
  SpringFXMLLoader.FXMLWrapper<Object,ProfileFrameController> profileWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",ProfileFrameController.class);
  this.profileScene=new Scene((Parent)profileWrapper.getLoadedObject(),screenWidth,screenHeight);
  SpringFXMLLoader.FXMLWrapper<Object,SettingFrameController> settingWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",SettingFrameController.class);
  Parent parentsett=(Parent)settingWrapper.getLoadedObject();
  this.settingScene=new Scene(parentsett,screenWidth,screenHeight);
  SpringFXMLLoader.FXMLWrapper<Object,LoginFrameController> adminLoginWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",LoginFrameController.class);
  Parent parentad=(Parent)adminLoginWrapper.getLoadedObject();
  URL cssad=this.getClass().getResource("String_Node_Str");
  LOGGER.info("String_Node_Str" + cssad);
  parentad.setStyle("String_Node_Str" + fontSize + "String_Node_Str");
  parentad.getStylesheets().add(cssad.toExternalForm());
  this.adminLoginScene=new Scene(parentad,screenWidth,screenHeight);
  SpringFXMLLoader.FXMLWrapper<Object,MiniaturFrameController> miniWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",MiniaturFrameController.class);
  Parent parentmin=(Parent)miniWrapper.getLoadedObject();
  URL csssett=this.getClass().getResource("String_Node_Str");
  LOGGER.info("String_Node_Str" + csssett);
  parentmin.setStyle("String_Node_Str" + fontSize + "String_Node_Str");
  parentmin.getStylesheets().add(csssett.toExternalForm());
  this.miniaturScene=new Scene(parentmin,screenWidth,screenHeight);
  SpringFXMLLoader.FXMLWrapper<Object,CostumerFrameController> costumerWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",CostumerFrameController.class);
  Parent parentcos=(Parent)costumerWrapper.getLoadedObject();
  URL csscos=this.getClass().getResource("String_Node_Str");
  LOGGER.info("String_Node_Str" + csscos);
  parentcos.setStyle("String_Node_Str" + fontSize * 3 + "String_Node_Str");
  parentcos.getStylesheets().add(csscos.toExternalForm());
  this.customerScene=new Scene(parentcos,screenWidth,screenHeight);
  SpringFXMLLoader.FXMLWrapper<Object,KameraFilterController> kameraFilterFXMLWrapper=springFXMLLoader.loadAndWrap("String_Node_Str",KameraFilterController.class);
  this.kamerafilterScene=new Scene((Parent)kameraFilterFXMLWrapper.getLoadedObject(),screenWidth,screenHeight);
  kameraFilterController=kameraFilterFXMLWrapper.getController();
  try {
    miniWrapper.getController().init(mainStage);
  }
 catch (  ServiceException e) {
    LOGGER.error("String_Node_Str",e);
  }
  this.mainStage.setTitle("String_Node_Str");
  if (activeShootingAvailable) {
    showAdminLogin(SHOW_CUSTOMERSCENE,END_APPLICATION);
  }
 else {
    showAdminLogin(SHOW_MAINSCENE,END_APPLICATION);
  }
  this.mainStage.setFullScreen(true);
  this.mainStage.show();
  this.mainStage.setFullScreenExitHint("String_Node_Str");
}