File tree 2 files changed +15
-9
lines changed
dslink-v2-api/src/main/java/org/iot/dsa/node
2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ subprojects {
5
5
apply plugin : ' maven'
6
6
7
7
group ' org.iot-dsa'
8
- version ' 0.74.0 '
8
+ version ' 0.74.1 '
9
9
10
10
targetCompatibility = JavaVersion . VERSION_1_8
11
11
sourceCompatibility = JavaVersion . VERSION_1_8
Original file line number Diff line number Diff line change @@ -1638,10 +1638,13 @@ private class NodeIterator implements Iterator<DSInfo<DSNode>> {
1638
1638
private DSInfo <DSNode > next ;
1639
1639
1640
1640
NodeIterator () {
1641
- if (firstChild .isNode ()) {
1642
- next = (DSInfo <DSNode >) firstChild ;
1643
- } else {
1644
- next = firstChild .nextNode ();
1641
+ DSInfo <?> first = getFirstInfo ();
1642
+ if (first != null ) {
1643
+ if (first .isNode ()) {
1644
+ next = (DSInfo <DSNode >) first ;
1645
+ } else {
1646
+ next = first .nextNode ();
1647
+ }
1645
1648
}
1646
1649
}
1647
1650
@@ -1721,10 +1724,13 @@ private class ValueIterator implements Iterator<DSInfo<DSIValue>> {
1721
1724
private DSInfo <DSIValue > next ;
1722
1725
1723
1726
ValueIterator () {
1724
- if (firstChild .isValue ()) {
1725
- next = (DSInfo <DSIValue >) firstChild ;
1726
- } else {
1727
- next = firstChild .nextValue ();
1727
+ DSInfo <?> first = getFirstInfo ();
1728
+ if (first != null ) {
1729
+ if (first .isValue ()) {
1730
+ next = (DSInfo <DSIValue >) first ;
1731
+ } else {
1732
+ next = first .nextValue ();
1733
+ }
1728
1734
}
1729
1735
}
1730
1736
You can’t perform that action at this time.
0 commit comments