diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-02-24 20:39:41 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-02-24 20:39:41 -0500 |
commit | d19ecb65e0b7d53b84e930adcf82a2cc1e401483 (patch) | |
tree | d1bd5ba53716b101c9d73c5dbe1036d501490581 | |
parent | f7bb831091a6e3bb8bf7e7927bb8470e626ea58f (diff) |
Fixed bug in Bridge.GetAllLights where light.Bridge was not assigned and causing a nil pointer.
-rw-r--r-- | bridge.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -239,6 +239,7 @@ func (bridge *Bridge) GetAllLights() ([]Light, error) { if err != nil { return []Light{}, errors.New("Unable to convert light index to integer. ") } + light.Bridge = bridge lights = append(lights, light) } return lights, nil |