Add HPath for node having empty nested table
@@ -301,9 +301,15 @@ public class HTable extends RepEntity {
for (HNodePath p : paths) {
if (p.getLeaf().getNestedTable() != null) {
HTable nestedHTable = p.getLeaf().getNestedTable();
- for (HNodePath nestedP : nestedHTable.getAllPaths()) {
+ List<HNodePath> allPaths = nestedHTable.getAllPaths();
+ if(allPaths!=null || allPaths.size()>0) {
+ for (HNodePath nestedP : allPaths) {
x.add(HNodePath.concatenate(p, nestedP));
}
+ }
+ else {
+ x.add(p);
+ }
} else {
x.add(p);
}
