Update ChoiceSchemaNode design
[yangtools.git] / yang / yang-data-util / src / main / java / org / opendaylight / yangtools / yang / data / util / ParserStreamUtils.java
index e2372c2f1a40745d1cec3ad55b65b5ef5afd450a..b9c17416fc7c403dbde167e156eb19a5c807e8e1 100644 (file)
@@ -62,7 +62,7 @@ public final class ParserStreamUtils {
 
         // try to find data schema node in choice (looking for first match)
         for (final ChoiceSchemaNode choiceNode : childChoices) {
-            for (final ChoiceCaseNode concreteCase : choiceNode.getCases()) {
+            for (final ChoiceCaseNode concreteCase : choiceNode.getCases().values()) {
                 final Deque<DataSchemaNode> resultFromRecursion = findSchemaNodeByNameAndNamespace(concreteCase,
                         childName, namespace);
                 if (!resultFromRecursion.isEmpty()) {