musarona opened a new issue #5761:
URL: https://github.com/apache/shardingsphere/issues/5761
another crash.
`Caused by: java.lang.NullPointerException: null
at
org.apache.shardingsphere.sql.parser.binder.metadata.table.TableMetaData.getIndexes(TableMetaData.java:72)
at
org.apache.shardingsphere.sql.parser.binder.metadata.table.TableMetaData.<init>(TableMetaData.java:53)
at
org.apache.shardingsphere.sql.parser.binder.metadata.schema.SchemaMetaDataLoader.load(SchemaMetaDataLoader.java:84)`
source code in 4.1.0
`public static Collection<IndexMetaData> load(final Connection connection,
final String table) throws SQLException {
Collection<IndexMetaData> result = new HashSet<>();
try (ResultSet resultSet =
connection.getMetaData().getIndexInfo(connection.getCatalog(),
JdbcUtil.getSchema(connection), table, false, false)) {
while (resultSet.next()) {
String indexName = resultSet.getString(INDEX_NAME);
result.add(new IndexMetaData(indexName));
}
}
return result;
}`
master trunk have fixed the problem。the version was released without any
test.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]