Program: 93140
Project: 93140
Buggy source:
private Builder(com.google.api.services.bigquery.model.JobConfiguration configurationPb){
  super(Type.LOAD);
  JobConfigurationLoad loadConfigurationPb=configurationPb.getLoad();
  this.destinationTable=TableId.fromPb(loadConfigurationPb.getDestinationTable());
  if (loadConfigurationPb.getCreateDisposition() != null) {
    this.createDisposition=JobInfo.CreateDisposition.valueOf(loadConfigurationPb.getCreateDisposition());
  }
  if (loadConfigurationPb.getWriteDisposition() != null) {
    this.writeDisposition=JobInfo.WriteDisposition.valueOf(loadConfigurationPb.getWriteDisposition());
  }
  if (loadConfigurationPb.getSourceFormat() != null) {
    this.formatOptions=FormatOptions.of(loadConfigurationPb.getSourceFormat());
  }
  if (loadConfigurationPb.getAllowJaggedRows() != null || loadConfigurationPb.getAllowQuotedNewlines() != null || loadConfigurationPb.getEncoding() != null || loadConfigurationPb.getFieldDelimiter() != null || loadConfigurationPb.getQuote() != null || loadConfigurationPb.getSkipLeadingRows() != null) {
    CsvOptions.Builder builder=CsvOptions.builder().allowJaggedRows(loadConfigurationPb.getAllowJaggedRows()).allowQuotedNewLines(loadConfigurationPb.getAllowQuotedNewlines()).encoding(loadConfigurationPb.getEncoding()).fieldDelimiter(loadConfigurationPb.getFieldDelimiter()).quote(loadConfigurationPb.getQuote()).skipLeadingRows(loadConfigurationPb.getSkipLeadingRows());
    this.formatOptions=builder.build();
  }
  this.maxBadRecords=loadConfigurationPb.getMaxBadRecords();
  if (loadConfigurationPb.getSchema() != null) {
    this.schema=Schema.fromPb(loadConfigurationPb.getSchema());
  }
  this.ignoreUnknownValues=loadConfigurationPb.getIgnoreUnknownValues();
  this.projectionFields=loadConfigurationPb.getProjectionFields();
  if (loadConfigurationPb.getSourceUris() != null) {
    this.sourceUris=ImmutableList.copyOf(configurationPb.getLoad().getSourceUris());
  }
}

Fixed version (ground truth):
private Builder(com.google.api.services.bigquery.model.JobConfiguration configurationPb){
  this();
  JobConfigurationLoad loadConfigurationPb=configurationPb.getLoad();
  this.destinationTable=TableId.fromPb(loadConfigurationPb.getDestinationTable());
  if (loadConfigurationPb.getCreateDisposition() != null) {
    this.createDisposition=JobInfo.CreateDisposition.valueOf(loadConfigurationPb.getCreateDisposition());
  }
  if (loadConfigurationPb.getWriteDisposition() != null) {
    this.writeDisposition=JobInfo.WriteDisposition.valueOf(loadConfigurationPb.getWriteDisposition());
  }
  if (loadConfigurationPb.getSourceFormat() != null) {
    this.formatOptions=FormatOptions.of(loadConfigurationPb.getSourceFormat());
  }
  if (loadConfigurationPb.getAllowJaggedRows() != null || loadConfigurationPb.getAllowQuotedNewlines() != null || loadConfigurationPb.getEncoding() != null || loadConfigurationPb.getFieldDelimiter() != null || loadConfigurationPb.getQuote() != null || loadConfigurationPb.getSkipLeadingRows() != null) {
    CsvOptions.Builder builder=CsvOptions.builder().allowJaggedRows(loadConfigurationPb.getAllowJaggedRows()).allowQuotedNewLines(loadConfigurationPb.getAllowQuotedNewlines()).encoding(loadConfigurationPb.getEncoding()).fieldDelimiter(loadConfigurationPb.getFieldDelimiter()).quote(loadConfigurationPb.getQuote()).skipLeadingRows(loadConfigurationPb.getSkipLeadingRows());
    this.formatOptions=builder.build();
  }
  this.maxBadRecords=loadConfigurationPb.getMaxBadRecords();
  if (loadConfigurationPb.getSchema() != null) {
    this.schema=Schema.fromPb(loadConfigurationPb.getSchema());
  }
  this.ignoreUnknownValues=loadConfigurationPb.getIgnoreUnknownValues();
  this.projectionFields=loadConfigurationPb.getProjectionFields();
  if (loadConfigurationPb.getSourceUris() != null) {
    this.sourceUris=ImmutableList.copyOf(configurationPb.getLoad().getSourceUris());
  }
}