Commit 076c0b0
committed
schema: handle None parsed objects in type creation
In libyang4, when dealing with printed contexts, cdata_parsed is not
set.
Check it 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 076c0b0
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1568 | 1568 | | |
1569 | 1569 | | |
1570 | 1570 | | |
1571 | | - | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
1572 | 1576 | | |
1573 | 1577 | | |
1574 | 1578 | | |
| |||
1600 | 1604 | | |
1601 | 1605 | | |
1602 | 1606 | | |
1603 | | - | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
1604 | 1610 | | |
1605 | 1611 | | |
1606 | 1612 | | |
| |||
0 commit comments