From d19ecb65e0b7d53b84e930adcf82a2cc1e401483 Mon Sep 17 00:00:00 2001 From: Collin Guarino Date: Wed, 24 Feb 2016 20:39:41 -0500 Subject: Fixed bug in Bridge.GetAllLights where light.Bridge was not assigned and causing a nil pointer. --- bridge.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bridge.go b/bridge.go index 61960fa..dc2b6ff 100644 --- a/bridge.go +++ b/bridge.go @@ -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 -- cgit v1.2.3