发生异常: panic
"runtime error: invalid memory address or nil pointer dereference"
Stack:
4 0x0000000000a90708 in github.com/zgwit/iot-master/master.(Device).BindAdapter
at /home/moon/go/src/iot-master/master/device.go:88
5 0x0000000000a91e19 in github.com/zgwit/iot-master/master.(Device).Start
at /home/moon/go/src/iot-master/master/device.go:198
6 0x0000000000a955ef in github.com/zgwit/iot-master/master.LoadDevice
at /home/moon/go/src/iot-master/master/master.go:58
7 0x0000000000c6182a in github.com/zgwit/iot-master/web/api.deviceUpdate.func1
at /home/moon/go/src/iot-master/web/api/device.go:171
发生异常: panic "runtime error: invalid memory address or nil pointer dereference" Stack: 4 0x0000000000a90708 in github.com/zgwit/iot-master/master.(Device).BindAdapter at /home/moon/go/src/iot-master/master/device.go:88 5 0x0000000000a91e19 in github.com/zgwit/iot-master/master.(Device).Start at /home/moon/go/src/iot-master/master/device.go:198 6 0x0000000000a955ef in github.com/zgwit/iot-master/master.LoadDevice at /home/moon/go/src/iot-master/master/master.go:58 7 0x0000000000c6182a in github.com/zgwit/iot-master/web/api.deviceUpdate.func1 at /home/moon/go/src/iot-master/web/api/device.go:171