mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-05 02:10:07 +05:00
Bug fix
This commit is contained in:
@@ -186,6 +186,8 @@ public class ProfileGroupItemManager
|
|||||||
visited.Add(indexId);
|
visited.Add(indexId);
|
||||||
stack.Add(indexId);
|
stack.Add(indexId);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
Instance.TryGet(indexId, out var groupItem);
|
Instance.TryGet(indexId, out var groupItem);
|
||||||
|
|
||||||
if (groupItem == null || groupItem.ChildItems.IsNullOrEmpty())
|
if (groupItem == null || groupItem.ChildItems.IsNullOrEmpty())
|
||||||
@@ -196,6 +198,10 @@ public class ProfileGroupItemManager
|
|||||||
var childIds = Utils.String2List(groupItem.ChildItems)
|
var childIds = Utils.String2List(groupItem.ChildItems)
|
||||||
.Where(p => !string.IsNullOrEmpty(p))
|
.Where(p => !string.IsNullOrEmpty(p))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
if (childIds == null)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var child in childIds)
|
foreach (var child in childIds)
|
||||||
{
|
{
|
||||||
@@ -205,9 +211,13 @@ public class ProfileGroupItemManager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stack.Remove(indexId);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
stack.Remove(indexId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static async Task<(List<ProfileItem> Items, ProfileGroupItem? Group)> GetChildProfileItems(string? indexId)
|
public static async Task<(List<ProfileItem> Items, ProfileGroupItem? Group)> GetChildProfileItems(string? indexId)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user