Skip to content

Commit

Permalink
Fix NPE when listing schemas in Phoenix connector
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr committed Jul 29, 2020
1 parent 283f511 commit 3593139
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ protected Collection<String> listSchemas(Connection connection)
ImmutableSet.Builder<String> schemaNames = ImmutableSet.builder();
schemaNames.add(DEFAULT_SCHEMA);
while (resultSet.next()) {
String schemaName = resultSet.getString("TABLE_SCHEM");
String schemaName = getTableSchemaName(resultSet);
// skip internal schemas
if (filterSchema(schemaName)) {
schemaNames.add(schemaName);
Expand Down

0 comments on commit 3593139

Please sign in to comment.