Skip to content

Commit

Permalink
Merge pull request #2159 from okta/OKTA-843018
Browse files Browse the repository at this point in the history
fix type conversion failed due to nil value
  • Loading branch information
duytiennguyen-okta authored Dec 10, 2024
2 parents 4c3a207 + 4a0b62a commit 07ad2ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion okta/data_source_okta_apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ func (d *AppsDataSource) Read(ctx context.Context, req datasource.ReadRequest, r

// Convert the list of applications to the Terraform schema.
for _, app := range applicationList {
oktaApp := app.GetActualInstance().(OktaApp)
oktaApp, ok := app.GetActualInstance().(OktaApp)
if !ok {
continue
}

FeaturesList, err := types.ListValueFrom(ctx, types.StringType, oktaApp.GetFeatures())
resp.Diagnostics.Append(err...)
Expand Down

0 comments on commit 07ad2ff

Please sign in to comment.