Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
983a858b
Commit
983a858b
authored
Mar 30, 2019
by
gitrocyang
Committed by
linlinjava
Mar 30, 2019
Browse files
修复进入商品详情加载商品评论时,因评论用户信息不存在的情况导致的NullPoint异常。 (#148)
parent
8219d12f
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxGoodsController.java
View file @
983a858b
...
@@ -130,8 +130,8 @@ public class WxGoodsController {
...
@@ -130,8 +130,8 @@ public class WxGoodsController {
c
.
put
(
"addTime"
,
comment
.
getAddTime
());
c
.
put
(
"addTime"
,
comment
.
getAddTime
());
c
.
put
(
"content"
,
comment
.
getContent
());
c
.
put
(
"content"
,
comment
.
getContent
());
LitemallUser
user
=
userService
.
findById
(
comment
.
getUserId
());
LitemallUser
user
=
userService
.
findById
(
comment
.
getUserId
());
c
.
put
(
"nickname"
,
user
.
getNickname
());
c
.
put
(
"nickname"
,
user
==
null
?
""
:
user
.
getNickname
());
c
.
put
(
"avatar"
,
user
.
getAvatar
());
c
.
put
(
"avatar"
,
user
==
null
?
""
:
user
.
getAvatar
());
c
.
put
(
"picList"
,
comment
.
getPicUrls
());
c
.
put
(
"picList"
,
comment
.
getPicUrls
());
commentsVo
.
add
(
c
);
commentsVo
.
add
(
c
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment