diff --git a/dev/NavigationView/NavigationView.cpp b/dev/NavigationView/NavigationView.cpp index 9f89157afd..e3529a76d8 100644 --- a/dev/NavigationView/NavigationView.cpp +++ b/dev/NavigationView/NavigationView.cpp @@ -1063,6 +1063,11 @@ winrt::ItemsRepeater NavigationView::GetParentRootItemsRepeaterForContainer(cons while (!IsRootItemsRepeater(parentIR)) { currentNvib = GetParentNavigationViewItemForContainer(currentNvib); + if (!currentNvib) + { + return nullptr; + } + parentIR = GetParentItemsRepeaterForContainer(currentNvib); } return parentIR;