Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新建设备,程序崩溃 #11

Closed
zgwit opened this issue May 25, 2022 · 2 comments
Closed

新建设备,程序崩溃 #11

zgwit opened this issue May 25, 2022 · 2 comments

Comments

@zgwit
Copy link
Owner

zgwit commented May 25, 2022

发生异常: 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

@zgwit
Copy link
Owner Author

zgwit commented May 25, 2022

起因是地址输入错误,代码未判断解析失败

@zgwit
Copy link
Owner Author

zgwit commented May 25, 2022

已经解决

@zgwit zgwit closed this as completed May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant