|
@@ -147,9 +147,12 @@ namespace GxPress.Service.Implement.Reply
|
|
|
if (item.Pid > 0)
|
|
|
{
|
|
|
ReplyResult replyResult1 = my.FirstOrDefault(n => n.Id == item.Pid);
|
|
|
- ReplyResult replyResult = replyResult1;
|
|
|
- item.Title = replyResult.CommentContent;
|
|
|
- item.Name = replyResult.Name;
|
|
|
+ if (replyResult1 != null)
|
|
|
+ {
|
|
|
+ ReplyResult replyResult = replyResult1;
|
|
|
+ item.Title = replyResult.CommentContent;
|
|
|
+ item.Name = replyResult.Name;
|
|
|
+ }
|
|
|
}
|
|
|
item.AvatarUrl = StringUtils.AddDomainMin(item.AvatarUrl);
|
|
|
item.Remark = ((AllTypeConst)item.TypeValue).GetDescriptionOriginal();
|