Skip to content

Commit

Permalink
RHINENG-12299: fix index out of range error
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Sep 2, 2024
1 parent dab8384 commit 4266f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/database/baseline.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func GetBaselineConfig(system *models.SystemPlatform) *BaselineConfig {
}

var config BaselineConfig
if len(jsonb[0]) == 0 {
if len(jsonb) > 0 && len(jsonb[0]) == 0 {
utils.LogDebug("baseline_id", system.BaselineID, "Empty baseline config found")
return nil
}
Expand Down

0 comments on commit 4266f9c

Please sign in to comment.