Program: 166972
Project: 166972
Buggy source:
@Override public void loadResultSet(ResultSet resultSet) throws SQLException {
  SchemaTable inVertexColumnName=null;
  SchemaTable outVertexColumnName=null;
  int inVertexColumnIndex=0;
  int outVertexColumnIndex=0;
  ResultSetMetaData resultSetMetaData=resultSet.getMetaData();
  for (int i=1; i <= resultSetMetaData.getColumnCount(); i++) {
    String columnName=resultSetMetaData.getColumnLabel(i);
    Object o=resultSet.getObject(i);
    if (!columnName.equals("String_Node_Str") && !Objects.isNull(o) && !columnName.endsWith(SchemaManager.OUT_VERTEX_COLUMN_END)&& !columnName.endsWith(SchemaManager.IN_VERTEX_COLUMN_END)) {
      loadProperty(resultSet,columnName,o);
    }
    if (!Objects.isNull(o)) {
      if (columnName.endsWith(SchemaManager.IN_VERTEX_COLUMN_END)) {
        inVertexColumnName=SchemaTable.from(this.sqlgGraph,columnName,this.sqlgGraph.getSqlDialect().getPublicSchema());
        inVertexColumnIndex=i;
      }
 else       if (columnName.endsWith(SchemaManager.OUT_VERTEX_COLUMN_END)) {
        outVertexColumnName=SchemaTable.from(this.sqlgGraph,columnName,this.sqlgGraph.getSqlDialect().getPublicSchema());
        outVertexColumnIndex=i;
      }
    }
  }
  if (inVertexColumnName == null || inVertexColumnIndex == 0 || outVertexColumnName == null || outVertexColumnIndex == 0) {
    throw new IllegalStateException(IN_OR_OUT_VERTEX_ID_NOT_SET);
  }
  Long inId=resultSet.getLong(inVertexColumnIndex);
  Long outId=resultSet.getLong(outVertexColumnIndex);
  this.inVertex=SqlgVertex.of(this.sqlgGraph,inId,inVertexColumnName.getSchema(),SqlgUtil.removeTrailingInId(inVertexColumnName.getTable()));
  this.outVertex=SqlgVertex.of(this.sqlgGraph,outId,outVertexColumnName.getSchema(),SqlgUtil.removeTrailingOutId(outVertexColumnName.getTable()));
}

Fixed version (ground truth):
@Override public void loadResultSet(ResultSet resultSet) throws SQLException {
  SchemaTable inVertexColumnName=null;
  SchemaTable outVertexColumnName=null;
  int inVertexColumnIndex=0;
  int outVertexColumnIndex=0;
  ResultSetMetaData resultSetMetaData=resultSet.getMetaData();
  for (int i=1; i <= resultSetMetaData.getColumnCount(); i++) {
    String columnName=resultSetMetaData.getColumnLabel(i);
    if (!columnName.equals("String_Node_Str") && !columnName.endsWith(SchemaManager.OUT_VERTEX_COLUMN_END) && !columnName.endsWith(SchemaManager.IN_VERTEX_COLUMN_END)) {
      loadProperty(resultSet,columnName,i);
    }
    if (columnName.endsWith(SchemaManager.IN_VERTEX_COLUMN_END)) {
      inVertexColumnName=SchemaTable.from(this.sqlgGraph,columnName,this.sqlgGraph.getSqlDialect().getPublicSchema());
      inVertexColumnIndex=i;
    }
 else     if (columnName.endsWith(SchemaManager.OUT_VERTEX_COLUMN_END)) {
      outVertexColumnName=SchemaTable.from(this.sqlgGraph,columnName,this.sqlgGraph.getSqlDialect().getPublicSchema());
      outVertexColumnIndex=i;
    }
  }
  if (inVertexColumnName == null || inVertexColumnIndex == 0 || outVertexColumnName == null || outVertexColumnIndex == 0) {
    throw new IllegalStateException("String_Node_Str");
  }
  Long inId=resultSet.getLong(inVertexColumnIndex);
  Long outId=resultSet.getLong(outVertexColumnIndex);
  this.inVertex=SqlgVertex.of(this.sqlgGraph,inId,inVertexColumnName.getSchema(),SqlgUtil.removeTrailingInId(inVertexColumnName.getTable()));
  this.outVertex=SqlgVertex.of(this.sqlgGraph,outId,outVertexColumnName.getSchema(),SqlgUtil.removeTrailingOutId(outVertexColumnName.getTable()));
}