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

Crash on message recieved before ready #21

Open
remijn opened this issue May 1, 2017 · 0 comments
Open

Crash on message recieved before ready #21

remijn opened this issue May 1, 2017 · 0 comments

Comments

@remijn
Copy link
Contributor

remijn commented May 1, 2017

When a message is received before the coordinator is ready, shepherd crashes with this error

zigbee-shepherd:request RSP <-- SYS:osalNvRead, status: 0 +163ms
zigbee-shepherd:request REQ --> SAPI:readConfiguration +12ms
zigbee-shepherd:request RSP <-- SAPI:readConfiguration, status: 0 +23ms
/Users/nick/Programming/zigbee-shepherd/lib/components/af.js:530
targetEp = af.controller.getCoord().getEndpoint(msg.dstendpoint); // => find local ep
^

TypeError: Cannot read property 'getEndpoint' of null
at dispatchIncomingMsg (/Users/nick/Programming/zigbee-shepherd/lib/components/af.js:530:44)
at Controller.incomingMsgHandler (/Users/nick/Programming/zigbee-shepherd/lib/components/af.js:663:12)
at emitOne (events.js:77:13)
at Controller.emit (events.js:169:7)
at Object.bridge._areqEventBridge (/Users/nick/Programming/zigbee-shepherd/lib/components/event_bridge.js:15:16)
at CcZnp. (/Users/nick/Programming/zigbee-shepherd/lib/components/controller.js:98:16)
at emitOne (events.js:77:13)
at CcZnp.emit (events.js:169:7)
at CcZnp._mtIncomingDataHdlr (/Users/nick/Programming/zigbee-shepherd/node_modules/cc-znp/lib/ccznp.js:367:14)
at /Users/nick/Programming/zigbee-shepherd/node_modules/cc-znp/lib/ccznp.js:333:22
at nextTickCallbackWith0Args (node.js:489:9)
at process._tickCallback (node.js:418:13)

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