Update ChoiceSchemaNode design
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / InstanceIdToNodes.java
index a4ddcc41a9efc753dba3e93f3cf7520a1da2ae96..471d8b07e482c296fcd4504d961a8f98ebdd2164 100644 (file)
@@ -179,7 +179,7 @@ abstract class InstanceIdToNodes<T extends PathArgument> implements Identifiable
         ChoiceSchemaNode foundChoice = null;
         choiceLoop:
         for (final ChoiceSchemaNode choice : choices) {
-            for (final ChoiceCaseNode caze : choice.getCases()) {
+            for (final ChoiceCaseNode caze : choice.getCases().values()) {
                 if (findChildSchemaNode(caze, child).isPresent()) {
                     foundChoice = choice;
                     break choiceLoop;