freeconf / yang

Standards-based management for Golang microservices
Apache License 2.0
38 stars 14 forks source link

fix: extract node type safely when calling OnRead handler #105

Closed Kirhchoff closed 8 months ago

Kirhchoff commented 8 months ago

Currently the OnRead handler panics when there is any 'nil' node in the tree.

Fix re-uses existing checks from OnWrite implementation and provides a repro unit test.