Commit 7c738d5
committed
schema: use parsed object only if available
With libyang/sysrepo 4 and printed contexts, the parsed object can be
null.
Check the parsed object before using it to get the node type.
Fixes: 0a4b09f ("cffi: allows to usage of libyang v4")
Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com>1 parent 6c0727f commit 7c738d5
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1568 | 1568 | | |
1569 | 1569 | | |
1570 | 1570 | | |
| 1571 | + | |
| 1572 | + | |
1571 | 1573 | | |
1572 | 1574 | | |
1573 | 1575 | | |
| |||
1599 | 1601 | | |
1600 | 1602 | | |
1601 | 1603 | | |
| 1604 | + | |
| 1605 | + | |
1602 | 1606 | | |
1603 | 1607 | | |
1604 | 1608 | | |
| |||
0 commit comments