You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a Hash(Integer, PayloadType) goa generates a map[int]*PayloadType, which is correct.
However, in the Publicize function of the generated code in user_types.go, the following is generated:
if ut.Triggers != nil {
pub.Triggers = make(map[int]*GameengineAchievementTriggerPayload, len(ut.Triggers))
for k2, v2 := range ut.Triggers {
pubk2 := k2
pubv2 := v2.Publicize()
pub.Triggers[pubk2] = pubv2
}
}
This causes a panic if the client sends a null value for v2
The text was updated successfully, but these errors were encountered:
luna-duclos
changed the title
Panic in Publicize when using Hash(Integer, MediaType)
Panic in Publicize when using Hash(Integer, PayloadType)
Feb 21, 2017
When using a Hash(Integer, PayloadType) goa generates a map[int]*PayloadType, which is correct.
However, in the Publicize function of the generated code in user_types.go, the following is generated:
This causes a panic if the client sends a null value for v2
The text was updated successfully, but these errors were encountered: