Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: npe (#13336)

h3n4l8f09306c8178
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.go
index f183f470b0..ff98e6e8b7 100644
--- a/backend/api/v1/database_service.go
+++ b/backend/api/v1/database_service.go
@@ -1819,6 +1819,9 @@ func (s *DatabaseService) isBackupAvailable(ctx context.Context, instance *store
slog.Debug("Failed to get db schema for checking backup availability", "err", err)
return false
}
+ if dbSchema == nil {
+ return false
+ }
for _, schema := range dbSchema.GetMetadata().GetSchemas() {
if schema.GetName() == backupDatabaseName {
return true