Program: 149351
Project: 149351
Buggy source:
public PullRequestBuildHandler(AbstractProject<?,?> project,boolean newTrigger) throws IOException {
  this.project=project;
  final GithubProjectProperty property=project.getProperty(GithubProjectProperty.class);
  if (property == null || property.getProjectUrl() == null || StringUtils.isBlank(property.getProjectUrl().baseUrl())) {
    throw new IOException(MessageFormat.format("String_Node_Str",project.getFullName()));
  }
  String gitHubProjectUrl=property.getProjectUrl().baseUrl().trim();
  GitHubRepositoryName gitHubRepoName=GitHubRepositoryName.create(gitHubProjectUrl);
  if (gitHubRepoName == null) {
    throw new IOException(MessageFormat.format("String_Node_Str",gitHubProjectUrl));
  }
  GHRepository repo=gitHubRepoName.resolveOne();
  if (repo == null) {
    throw new IOException(MessageFormat.format("String_Node_Str",gitHubRepoName));
  }
  gitHubRepositoryUrl=repo.getUrl();
  if (!gitHubRepositoryUrl.endsWith("String_Node_Str")) {
    gitHubRepositoryUrl+='/';
  }
  PullRequestBuildTrigger trigger=project.getTrigger(PullRequestBuildTrigger.class);
  triggerPhrasePattern=Pattern.compile(trigger.getTriggerPhrase(),Pattern.CASE_INSENSITIVE);
  if (StringUtils.isNotBlank(trigger.getWhitelist())) {
    Set<String> entries=new HashSet<String>();
    for (    String entry : trigger.getWhitelist().split("String_Node_Str")) {
      if (StringUtils.isNotBlank(entry)) {
        entries.add(entry);
      }
    }
    if (!entries.isEmpty()) {
      whitelist=entries;
    }
  }
  if (newTrigger) {
    configureGit(gitHubRepoName,trigger);
    PullRequestBuildTrigger.DescriptorImpl descriptor=(PullRequestBuildTrigger.DescriptorImpl)Jenkins.getInstance().getDescriptor(PullRequestBuildTrigger.class);
    final String webhookUrl=StringUtils.isBlank(descriptor.getWebHookExternalUrl()) ? descriptor.getWebHookUrl() : descriptor.getWebHookExternalUrl();
    if (webhookUrl == null) {
      LOGGER.warning(MessageFormat.format("String_Node_Str",gitHubRepositoryUrl,descriptor.getDisplayName()));
    }
 else {
      LOGGER.info(MessageFormat.format("String_Node_Str",webhookUrl,gitHubRepositoryUrl));
      sequentialExecutionQueue.execute(new Runnable(){
        public void run(){
          try {
            createWebHook(webhookUrl);
          }
 catch (          Throwable ex) {
            LOGGER.log(Level.SEVERE,MessageFormat.format("String_Node_Str",gitHubRepositoryUrl),ex);
          }
        }
      }
);
    }
  }
}

Fixed version (ground truth):
public PullRequestBuildHandler(AbstractProject<?,?> project,boolean newTrigger) throws IOException {
  this.project=project;
  final GithubProjectProperty property=project.getProperty(GithubProjectProperty.class);
  if (property == null || property.getProjectUrl() == null || StringUtils.isBlank(property.getProjectUrl().baseUrl())) {
    throw new IOException(MessageFormat.format("String_Node_Str",project.getFullName()));
  }
  String gitHubProjectUrl=property.getProjectUrl().baseUrl().trim();
  GitHubRepositoryName gitHubRepoName=GitHubRepositoryName.create(gitHubProjectUrl);
  if (gitHubRepoName == null) {
    throw new IOException(MessageFormat.format("String_Node_Str",gitHubProjectUrl));
  }
  GHRepository repo=gitHubRepoName.resolveOne();
  if (repo == null) {
    LOGGER.severe(MessageFormat.format("String_Node_Str",gitHubRepoName));
    gitHubRepositoryUrl=gitHubProjectUrl;
  }
 else {
    gitHubRepositoryUrl=repo.getUrl();
  }
  if (!gitHubRepositoryUrl.endsWith("String_Node_Str")) {
    gitHubRepositoryUrl+='/';
  }
  PullRequestBuildTrigger trigger=project.getTrigger(PullRequestBuildTrigger.class);
  triggerPhrasePattern=Pattern.compile(trigger.getTriggerPhrase(),Pattern.CASE_INSENSITIVE);
  if (StringUtils.isNotBlank(trigger.getWhitelist())) {
    Set<String> entries=new HashSet<String>();
    for (    String entry : trigger.getWhitelist().split("String_Node_Str")) {
      if (StringUtils.isNotBlank(entry)) {
        entries.add(entry);
      }
    }
    if (!entries.isEmpty()) {
      whitelist=entries;
    }
  }
  if (newTrigger) {
    configureGit(gitHubRepoName,trigger);
    PullRequestBuildTrigger.DescriptorImpl descriptor=(PullRequestBuildTrigger.DescriptorImpl)Jenkins.getInstance().getDescriptor(PullRequestBuildTrigger.class);
    final String webhookUrl=StringUtils.isBlank(descriptor.getWebHookExternalUrl()) ? descriptor.getWebHookUrl() : descriptor.getWebHookExternalUrl();
    if (webhookUrl == null) {
      LOGGER.warning(MessageFormat.format("String_Node_Str",gitHubRepositoryUrl,descriptor.getDisplayName()));
    }
 else {
      LOGGER.info(MessageFormat.format("String_Node_Str",webhookUrl,gitHubRepositoryUrl));
      sequentialExecutionQueue.execute(new Runnable(){
        public void run(){
          try {
            createWebHook(webhookUrl);
          }
 catch (          Throwable ex) {
            LOGGER.log(Level.SEVERE,MessageFormat.format("String_Node_Str",gitHubRepositoryUrl),ex);
          }
        }
      }
);
    }
  }
}