Skip to content

Commit

Permalink
Merge pull request #126 from azaurus1/fix-nil-pointer-in-metadata-con…
Browse files Browse the repository at this point in the history
…version

Fixes nil pointer
  • Loading branch information
azaurus1 authored Jan 13, 2025
2 parents 278604f + a852115 commit 70e693a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/converter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,19 @@ func SetStateFromTable(ctx context.Context, state *models.TableResourceModel, ta
state.IngestionConfig = convertIngestionConfig(table)
}

if state.TierConfigs != nil {
if table.TierConfigs != nil {
state.TierConfigs = convertTierConfigs(table)
}

if state.Metadata != nil {
if table.Metadata != nil {
state.Metadata = convertMetadata(table)
}

tableIndexConfig, resultDiags := convertTableIndexConfig(ctx, table)
if resultDiags.HasError() {
diags.Append(resultDiags...)
}

state.TableIndexConfig = tableIndexConfig

// Routing Config
Expand Down

0 comments on commit 70e693a

Please sign in to comment.