Program: 161895
Project: 161895
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;
  log.fine("String_Node_Str");
  oDxlevel=cl.getSystemDxLevel();
  Path steampath=cl.getSteamPath();
  if (steampath.toString().isEmpty()) {
    steampath=Paths.get(settings.getString(Key.AltSteamDir));
  }
  log.fine("String_Node_Str" + steampath);
  if (!steampath.getFileName().toString().equalsIgnoreCase("String_Node_Str") || !Files.exists(steampath)) {
    log.warning("String_Node_Str");
    log.warning("String_Node_Str");
    log.info("String_Node_Str");
    steampath=getChosenSteamPath();
    if (steampath == null) {
      log.info("String_Node_Str");
      JOptionPane.showMessageDialog(null,"String_Node_Str","String_Node_Str",JOptionPane.WARNING_MESSAGE);
      throw new IllegalArgumentException("String_Node_Str");
    }
    settings.setString(Key.AltSteamDir,steampath.toString());
  }
  settings.setString(Key.SteamDir,steampath.toString());
  Path tfpath=settings.getTfPath();
  if (tfpath == null || tfpath.toString().isEmpty()) {
    tfpath=steampath.resolve("String_Node_Str");
  }
  log.fine("String_Node_Str" + tfpath);
  if (!tfpath.getFileName().toString().equalsIgnoreCase("String_Node_Str") || !Files.exists(tfpath)) {
    tfpath=getChosenTfPath();
    if (tfpath == null) {
      log.info("String_Node_Str");
      JOptionPane.showMessageDialog(null,"String_Node_Str","String_Node_Str",JOptionPane.WARNING_MESSAGE);
      throw new IllegalArgumentException("String_Node_Str");
    }
  }
  settings.setTfPath(tfpath);
  files=new FileManager(settings,cl);
  Path moviepath=settings.getMoviePath();
  log.info("String_Node_Str" + moviepath);
  if (moviepath == null || moviepath.toString().isEmpty() || !Files.exists(moviepath)) {
    moviepath=getChosenMoviePath();
    if (moviepath == null) {
      log.info("String_Node_Str");
      JOptionPane.showMessageDialog(null,"String_Node_Str","String_Node_Str",JOptionPane.WARNING_MESSAGE);
      throw new IllegalArgumentException("String_Node_Str");
    }
  }
  movies=new MovieManager(settings);
  settings.setMoviePath(moviepath);
  log.fine("String_Node_Str");
  settings.save();
  log.fine("String_Node_Str");
  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);
  log.fine("String_Node_Str");
}

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;
  log.fine("String_Node_Str");
  oDxlevel=getOriginalDxlevel();
  Path steampath=cl.getSteamPath();
  if (steampath.toString().isEmpty()) {
    steampath=Paths.get(settings.getString(Key.AltSteamDir));
  }
  log.fine("String_Node_Str" + steampath);
  if (!steampath.getFileName().toString().equalsIgnoreCase("String_Node_Str") || !Files.exists(steampath)) {
    log.warning("String_Node_Str");
    log.warning("String_Node_Str");
    log.info("String_Node_Str");
    steampath=getChosenSteamPath();
    if (steampath == null) {
      log.info("String_Node_Str");
      JOptionPane.showMessageDialog(null,"String_Node_Str","String_Node_Str",JOptionPane.WARNING_MESSAGE);
      throw new IllegalArgumentException("String_Node_Str");
    }
    settings.setString(Key.AltSteamDir,steampath.toString());
  }
  settings.setString(Key.SteamDir,steampath.toString());
  Path tfpath=settings.getTfPath();
  if (tfpath == null || tfpath.toString().isEmpty()) {
    tfpath=steampath.resolve("String_Node_Str");
  }
  log.fine("String_Node_Str" + tfpath);
  if (!tfpath.getFileName().toString().equalsIgnoreCase("String_Node_Str") || !Files.exists(tfpath)) {
    tfpath=getChosenTfPath();
    if (tfpath == null) {
      log.info("String_Node_Str");
      JOptionPane.showMessageDialog(null,"String_Node_Str","String_Node_Str",JOptionPane.WARNING_MESSAGE);
      throw new IllegalArgumentException("String_Node_Str");
    }
  }
  settings.setTfPath(tfpath);
  files=new FileManager(settings,cl);
  Path moviepath=settings.getMoviePath();
  log.info("String_Node_Str" + moviepath);
  if (moviepath == null || moviepath.toString().isEmpty() || !Files.exists(moviepath)) {
    moviepath=getChosenMoviePath();
    if (moviepath == null) {
      log.info("String_Node_Str");
      JOptionPane.showMessageDialog(null,"String_Node_Str","String_Node_Str",JOptionPane.WARNING_MESSAGE);
      throw new IllegalArgumentException("String_Node_Str");
    }
  }
  movies=new MovieManager(settings);
  settings.setMoviePath(moviepath);
  log.fine("String_Node_Str");
  settings.save();
  log.fine("String_Node_Str");
  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);
  log.fine("String_Node_Str");
}