Skip to content

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

fix: fix panic when table does not exist (#1888)

rebelice7de1d54c9fe0
diff --git a/store/catalog.go b/store/catalog.go
index 63a01b6618..22fb381ee7 100644
--- a/store/catalog.go
+++ b/store/catalog.go
@@ -38,6 +38,9 @@ func (c *Catalog) FindIndex(ctx context.Context, find *catalog.IndexFind) (*cata
if err != nil {
return nil, err
}
+ if table == nil {
+ return nil, nil
+ }
indexList, err := c.store.FindIndex(ctx, &api.IndexFind{
DatabaseID: c.databaseID,