李昊 преди 4 години
родител
ревизия
ecb0f76dee
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      gx_api/GxPress/Service/GxPress.Service.Implement/Collection/CollectionService.cs

+ 2 - 0
gx_api/GxPress/Service/GxPress.Service.Implement/Collection/CollectionService.cs

@@ -556,6 +556,8 @@ namespace GxPress.Service.Implement.Collection
             if (collectionType == GxPress.EnumConst.AllTypeConst.Group.GetHashCode())
             {
                 var group = await _groupRepository.GetAsync(collectionDataId);
+                if (group == null)
+                    return new CollectionContentJsonData();
                 var user = await _userRepository.GetAsync(group.UserId);
                 if (user == null)
                     return new CollectionContentJsonData();