Program: 166926
Project: 166926
Buggy source:
@Override protected void load(){
  if ((!this.sqlgGraph.tx().isInBatchMode() && this.properties.isEmpty()) || (this.properties.isEmpty() && this.sqlgGraph.features().supportsBatchMode() && this.sqlgGraph.tx().isInBatchMode()&& !this.sqlgGraph.tx().getBatchManager().vertexIsCached(this))) {
    if (this.sqlgGraph.tx().getBatchManager().isStreaming()) {
      throw new IllegalStateException("String_Node_Str");
    }
    @SuppressWarnings("String_Node_Str") VertexLabel vertexLabel=this.sqlgGraph.getTopology().getSchema(this.schema).get().getVertexLabel(this.table).get();
    StringBuilder sql=new StringBuilder("String_Node_Str");
    sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes("String_Node_Str"));
    for (    PropertyColumn propertyColumn : vertexLabel.properties.values()) {
      sql.append("String_Node_Str");
      sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(propertyColumn.getName()));
    }
    sql.append("String_Node_Str");
    sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(this.schema));
    sql.append("String_Node_Str");
    sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(SchemaManager.VERTEX_PREFIX + this.table));
    sql.append("String_Node_Str");
    sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes("String_Node_Str"));
    sql.append("String_Node_Str");
    if (this.sqlgGraph.getSqlDialect().needsSemicolon()) {
      sql.append("String_Node_Str");
    }
    Connection conn=this.sqlgGraph.tx().getConnection();
    if (logger.isDebugEnabled()) {
      logger.debug(sql.toString());
    }
    try (PreparedStatement preparedStatement=conn.prepareStatement(sql.toString())){
      preparedStatement.setLong(1,this.recordId.getId());
      ResultSet resultSet=preparedStatement.executeQuery();
      if (resultSet.next()) {
        loadResultSet(resultSet);
      }
 else {
        throw new IllegalStateException(String.format("String_Node_Str",new Object[]{this.schema + "String_Node_Str" + this.table,this.recordId.getId()}));
      }
    }
 catch (    SQLException e) {
      throw new RuntimeException(e);
    }
  }
}

Fixed version (ground truth):
@Override protected void load(){
  if ((!this.sqlgGraph.tx().isInBatchMode() && this.properties.isEmpty()) || (this.properties.isEmpty() && this.sqlgGraph.features().supportsBatchMode() && this.sqlgGraph.tx().isInBatchMode()&& !this.sqlgGraph.tx().getBatchManager().vertexIsCached(this))) {
    if (this.sqlgGraph.tx().getBatchManager().isStreaming()) {
      throw new IllegalStateException("String_Node_Str");
    }
    @SuppressWarnings("String_Node_Str") VertexLabel vertexLabel=this.sqlgGraph.getTopology().getSchema(this.schema).get().getVertexLabel(this.table).get();
    StringBuilder sql=new StringBuilder("String_Node_Str");
    sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes("String_Node_Str"));
    for (    PropertyColumn propertyColumn : vertexLabel.properties.values()) {
      sql.append("String_Node_Str");
      sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(propertyColumn.getName()));
      String[] ps=propertyColumn.getPropertyType().getPostFixes();
      if (ps != null) {
        for (        String p : propertyColumn.getPropertyType().getPostFixes()) {
          sql.append("String_Node_Str");
          sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(propertyColumn.getName() + p));
        }
      }
    }
    sql.append("String_Node_Str");
    sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(this.schema));
    sql.append("String_Node_Str");
    sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(SchemaManager.VERTEX_PREFIX + this.table));
    sql.append("String_Node_Str");
    sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes("String_Node_Str"));
    sql.append("String_Node_Str");
    if (this.sqlgGraph.getSqlDialect().needsSemicolon()) {
      sql.append("String_Node_Str");
    }
    Connection conn=this.sqlgGraph.tx().getConnection();
    if (logger.isDebugEnabled()) {
      logger.debug(sql.toString());
    }
    try (PreparedStatement preparedStatement=conn.prepareStatement(sql.toString())){
      preparedStatement.setLong(1,this.recordId.getId());
      ResultSet resultSet=preparedStatement.executeQuery();
      if (resultSet.next()) {
        loadResultSet(resultSet);
      }
 else {
        throw new IllegalStateException(String.format("String_Node_Str",new Object[]{this.schema + "String_Node_Str" + this.table,this.recordId.getId()}));
      }
    }
 catch (    SQLException e) {
      throw new RuntimeException(e);
    }
  }
}