Program: 161912
Project: 161912
Buggy source:
public Lawena(SettingsManager cfg){
  String impl=this.getClass().getPackage().getImplementationVersion();
  if (impl != null) {
    version=impl;
  }
  build=getManifestString("String_Node_Str",Util.now("String_Node_Str"));
  String osname=System.getProperty("String_Node_Str");
  if (osname.contains("String_Node_Str")) {
    cl=new CLWindows();
  }
 else   if (osname.contains("String_Node_Str")) {
    cl=new CLLinux();
  }
 else   if (osname.contains("String_Node_Str")) {
    cl=new CLOSX();
  }
 else {
    throw new UnsupportedOperationException("String_Node_Str");
  }
  cl.setLookAndFeel();
  updater=new UpdateHelper();
  updater.updateLauncher();
  updater.cleanupUnusedFiles();
  updater.loadChannels();
  settings=cfg;
  oDxlevel=cl.getSystemDxLevel();
  steampath=cl.getSteamPath();
  Path tfpath=settings.getTfPath();
  if (tfpath == null || tfpath.toString().isEmpty()) {
    tfpath=steampath.resolve("String_Node_Str");
  }
  if (!Files.exists(tfpath)) {
    tfpath=getChosenTfPath();
    if (tfpath == null) {
      log.info("String_Node_Str");
      System.exit(1);
    }
  }
  settings.setTfPath(tfpath);
  files=new FileManager(settings,cl);
  Path moviepath=settings.getMoviePath();
  if (moviepath == null || moviepath.toString().isEmpty() || !Files.exists(moviepath)) {
    moviepath=getChosenMoviePath();
    if (moviepath == null) {
      log.info("String_Node_Str");
      System.exit(1);
    }
  }
  movies=new MovieManager(settings);
  settings.setMoviePath(moviepath);
  settings.save();
  files.restoreAll();
  customPaths=new CustomPathList(settings,cl);
  files.setCustomPathList(customPaths);
  watcher=new Thread(new Runnable(){
    @Override public void run(){
      try {
        WatchDir w=new WatchDir(Paths.get("String_Node_Str"),false){
          @Override public void entryCreated(          Path child){
            try {
              customPaths.addPath(child);
            }
 catch (            IOException e) {
              log.log(Level.FINE,"String_Node_Str",e);
            }
          }
          @Override public void entryModified(          Path child){
            customPaths.updatePath(child);
          }
          @Override public void entryDeleted(          Path child){
            customPaths.removePath(child);
          }
        }
;
        w.processEvents();
      }
 catch (      IOException e) {
        log.log(Level.FINE,"String_Node_Str",e);
      }
    }
  }
,"String_Node_Str");
  watcher.setDaemon(true);
  vdm=new DemoEditor(settings,cl);
}

Fixed version (ground truth):
public Lawena(SettingsManager cfg){
  String impl=this.getClass().getPackage().getImplementationVersion();
  if (impl != null) {
    version=impl;
  }
  build=getManifestString("String_Node_Str",Util.now("String_Node_Str"));
  String osname=System.getProperty("String_Node_Str");
  if (osname.contains("String_Node_Str")) {
    cl=new CLWindows();
  }
 else   if (osname.contains("String_Node_Str")) {
    cl=new CLLinux();
  }
 else   if (osname.contains("String_Node_Str")) {
    cl=new CLOSX();
  }
 else {
    throw new UnsupportedOperationException("String_Node_Str");
  }
  cl.setLookAndFeel();
  updater=new UpdateHelper();
  updater.updateLauncher();
  updater.cleanupUnusedFiles();
  updater.loadChannels();
  settings=cfg;
  oDxlevel=cl.getSystemDxLevel();
  steampath=cl.getSteamPath();
  Path tfpath=settings.getTfPath();
  if (tfpath == null || tfpath.toString().isEmpty()) {
    tfpath=steampath.resolve("String_Node_Str");
  }
  if (!Files.exists(tfpath)) {
    tfpath=getChosenTfPath();
    if (tfpath == null) {
      log.info("String_Node_Str");
      throw new IllegalArgumentException("String_Node_Str");
    }
  }
  settings.setTfPath(tfpath);
  files=new FileManager(settings,cl);
  Path moviepath=settings.getMoviePath();
  if (moviepath == null || moviepath.toString().isEmpty() || !Files.exists(moviepath)) {
    moviepath=getChosenMoviePath();
    if (moviepath == null) {
      log.info("String_Node_Str");
      throw new IllegalArgumentException("String_Node_Str");
    }
  }
  movies=new MovieManager(settings);
  settings.setMoviePath(moviepath);
  settings.save();
  files.restoreAll();
  customPaths=new CustomPathList(settings,cl);
  files.setCustomPathList(customPaths);
  watcher=new Thread(new Runnable(){
    @Override public void run(){
      try {
        WatchDir w=new WatchDir(Paths.get("String_Node_Str"),false){
          @Override public void entryCreated(          Path child){
            try {
              customPaths.addPath(child);
            }
 catch (            IOException e) {
              log.log(Level.FINE,"String_Node_Str",e);
            }
          }
          @Override public void entryModified(          Path child){
            customPaths.updatePath(child);
          }
          @Override public void entryDeleted(          Path child){
            customPaths.removePath(child);
          }
        }
;
        w.processEvents();
      }
 catch (      IOException e) {
        log.log(Level.FINE,"String_Node_Str",e);
      }
    }
  }
,"String_Node_Str");
  watcher.setDaemon(true);
  vdm=new DemoEditor(settings,cl);
}