Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle empty or null result in list-keyspaces #200

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Conversation

weideng1
Copy link
Contributor

This fixes the issue reported in #199

sht.addColumn(COLUMN_NAME, 20);

if (db.getInfo().getKeyspaces() == null || db.getInfo().getKeyspaces().isEmpty()) {
AstraCliConsole.print("No keyspaces found for database: " + databaseName + "\n");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AstraCliConsole.print("No keyspaces found for database: " + databaseName + "\n");
AstraCliConsole.print("No keyspace(s) found for database: " + databaseName + "\n");

@clun clun merged commit df88267 into datastax:main Jan 8, 2025
1 of 2 checks passed
@msmygit
Copy link
Collaborator

msmygit commented Jan 8, 2025

Closed #199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants