Program: 165485
Project: 165485
Buggy source:
private Movie makeData18MovieThreadsAndScrape(int movieNumberInList,boolean isData18Movie) throws InterruptedException {
  final int currentMovieNumberInList=movieNumberInList;
  final boolean parsingType=isData18Movie;
  final int numberOfThreads;
  if (this.guiMain.getPreferences().getUseIAFDForActors())   numberOfThreads=2;
 else   numberOfThreads=1;
  final int amountOfProgressToMakePerThread=(100 / numberOfThreads) - 1;
  amountOfProgressPerSubtask=amountOfProgressToMakePerThread;
  final ScrapeMovieAction thisScrapeAction=this;
  final String overriddenURL=overrideURLData18Movie;
  Thread scrapeQueryData18MovieThread=new Thread(){
    public void run(){
      try {
        SiteParsingProfile data18MoviePP;
        if (parsingType)         data18MoviePP=new Data18MovieParsingProfile();
 else         data18MoviePP=new Data18WebContentParsingProfile();
        if (overriddenURL != null && overriddenURL.length() > 0)         data18MoviePP.setOverridenSearchResult(overriddenURL);
        ScrapeMovieAction.this.guiMain.debugWriter("String_Node_Str" + ScrapeMovieAction.this.guiMain.getCurrentlySelectedMovieFileList().get(currentMovieNumberInList));
        ScrapeMovieAction.this.guiMain.setCurrentlySelectedMovieData18Movie(Movie.scrapeMovie(ScrapeMovieAction.this.guiMain.getCurrentlySelectedMovieFileList().get(currentMovieNumberInList),data18MoviePP,overrideURLData18Movie,promptUserForURLWhenScraping,thisScrapeAction));
        System.out.println("String_Node_Str" + ScrapeMovieAction.this.guiMain.getCurrentlySelectedMovieData18Movie());
        if (ScrapeMovieAction.this.guiMain.getPreferences().getUseIAFDForActors() && ScrapeMovieAction.this.guiMain.getCurrentlySelectedMovieData18Movie() != null) {
          Movie scrapeMovieIAFD=Movie.scrapeMovie(ScrapeMovieAction.this.guiMain.getCurrentlySelectedMovieFileList().get(currentMovieNumberInList),new IAFDParsingProfile(),overrideURLIAFD,promptUserForURLWhenScraping,thisScrapeAction);
          System.out.println("String_Node_Str" + scrapeMovieIAFD);
          ScrapeMovieAction.this.guiMain.getCurrentlySelectedMovieData18Movie().setActors(scrapeMovieIAFD.getActors());
        }
      }
 catch (      IOException e1) {
        e1.printStackTrace();
      }
    }
  }
;
  scrapeQueryData18MovieThread.start();
  scrapeQueryData18MovieThread.join();
  if (this.guiMain.getCurrentlySelectedMovieData18Movie() != null)   System.out.print("String_Node_Str" + guiMain.getCurrentlySelectedMovieFileList().get(currentMovieNumberInList).getName());
  this.guiMain.movieToWriteToDiskList.add(this.guiMain.getCurrentlySelectedMovieData18Movie());
  return this.guiMain.getCurrentlySelectedMovieData18Movie();
}

Fixed version (ground truth):
private Movie makeData18MovieThreadsAndScrape(int movieNumberInList,boolean isData18Movie) throws InterruptedException {
  final int currentMovieNumberInList=movieNumberInList;
  final boolean parsingType=isData18Movie;
  final int numberOfThreads;
  if (this.guiMain.getPreferences().getUseIAFDForActors())   numberOfThreads=2;
 else   numberOfThreads=1;
  final int amountOfProgressToMakePerThread=(100 / numberOfThreads) - 1;
  amountOfProgressPerSubtask=amountOfProgressToMakePerThread;
  final ScrapeMovieAction thisScrapeAction=this;
  final String overriddenURL=overrideURLData18Movie;
  Thread scrapeQueryData18MovieThread=new Thread(){
    public void run(){
      try {
        SiteParsingProfile data18MoviePP;
        if (parsingType)         data18MoviePP=new Data18MovieParsingProfile();
 else         data18MoviePP=new Data18WebContentParsingProfile();
        if (overriddenURL != null && overriddenURL.length() > 0)         data18MoviePP.setOverridenSearchResult(overriddenURL);
        ScrapeMovieAction.this.guiMain.debugWriter("String_Node_Str" + ScrapeMovieAction.this.guiMain.getCurrentlySelectedMovieFileList().get(currentMovieNumberInList));
        ScrapeMovieAction.this.guiMain.setCurrentlySelectedMovieData18Movie(Movie.scrapeMovie(ScrapeMovieAction.this.guiMain.getCurrentlySelectedMovieFileList().get(currentMovieNumberInList),data18MoviePP,overrideURLData18Movie,promptUserForURLWhenScraping,thisScrapeAction));
        System.out.println("String_Node_Str" + ScrapeMovieAction.this.guiMain.getCurrentlySelectedMovieData18Movie());
        if (ScrapeMovieAction.this.guiMain.getPreferences().getUseIAFDForActors() && ScrapeMovieAction.this.guiMain.getCurrentlySelectedMovieData18Movie() != null) {
          Movie scrapeMovieIAFD=Movie.scrapeMovie(ScrapeMovieAction.this.guiMain.getCurrentlySelectedMovieFileList().get(currentMovieNumberInList),new IAFDParsingProfile(),overrideURLIAFD,promptUserForURLWhenScraping,thisScrapeAction);
          System.out.println("String_Node_Str" + scrapeMovieIAFD);
          ScrapeMovieAction.this.guiMain.getCurrentlySelectedMovieData18Movie().setActors(scrapeMovieIAFD.getActors());
        }
      }
 catch (      IOException e1) {
        e1.printStackTrace();
      }
    }
  }
;
  scrapeQueryData18MovieThread.start();
  scrapeQueryData18MovieThread.join();
  if (this.guiMain.getCurrentlySelectedMovieData18Movie() == null)   System.out.print("String_Node_Str" + guiMain.getCurrentlySelectedMovieFileList().get(currentMovieNumberInList).getName());
  this.guiMain.movieToWriteToDiskList.add(this.guiMain.getCurrentlySelectedMovieData18Movie());
  return this.guiMain.getCurrentlySelectedMovieData18Movie();
}