Skip to content

Commit 8734693

Browse files
authored
修复全部动态增量加载失败的问题 (#276)
1 parent 3744899 commit 8734693

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Libs/Libs.Adapter/DynamicAdapter.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ p.CardType is not DynamicType.DynNone
127127
.Select(ConvertToDynamicInformation)
128128
.ToList();
129129

130-
var ups = reply.UpList.List.Where(p => p.LiveState != LiveState.LiveLive).Select(UserAdapter.ConvertToUserProfile).ToList();
131-
return new DynamicView(list, ups, reply.UpList.Footprint);
130+
var ups = reply.UpList != null
131+
? reply.UpList.List.Where(p => p.LiveState != LiveState.LiveLive).Select(UserAdapter.ConvertToUserProfile).ToList()
132+
: new System.Collections.Generic.List<DynamicUper>();
133+
return new DynamicView(list, ups, reply.UpList?.Footprint);
132134
}
133135

134136
/// <summary>

0 commit comments

Comments
 (0)