Skip to content

Commit 0be7fa1

Browse files
authored
Merge pull request #25 from drone/FFM-1108
[FFM-1108]: Fix the 500 error on target details page
2 parents a8527c8 + 259fba8 commit 0be7fa1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

evaluation/feature.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,11 @@ func (fc FeatureConfig) GetVariationName(target *Target) string {
228228
if variationMap.TargetSegments != nil {
229229
for _, segmentIdentifier := range variationMap.TargetSegments {
230230
segment := fc.Segments[segmentIdentifier]
231-
for _, t := range segment.Included {
232-
if t == target.Identifier {
233-
return variationMap.Variation
231+
if segment.Included != nil {
232+
for _, t := range segment.Included {
233+
if t == target.Identifier {
234+
return variationMap.Variation
235+
}
234236
}
235237
}
236238
}

0 commit comments

Comments
 (0)