Skip to content

Commit

Permalink
fix nill pointer (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moglum committed Feb 17, 2021
1 parent 3d9e2cc commit ad7f33a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ func getResourceIndex(index addrs.InstanceKey) string {

func marshalAttributeValues(src *states.ResourceInstanceObjectSrc) (attrs []types.Attribute) {
vals := make(attributeValues)
if src == nil {
return
}
if src.AttrsFlat != nil {
for k, v := range src.AttrsFlat {
vals[k] = v
Expand Down

0 comments on commit ad7f33a

Please sign in to comment.