Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
f09bba9a
Commit
f09bba9a
authored
Apr 12, 2017
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
Fix category mgmt NPE
parent
2b84f8f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/main/java/org/b3log/solo/service/CategoryQueryService.java
...ain/java/org/b3log/solo/service/CategoryQueryService.java
+5
-1
No files found.
src/main/java/org/b3log/solo/service/CategoryQueryService.java
View file @
f09bba9a
...
...
@@ -41,7 +41,7 @@ import java.util.List;
* Category query service.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.
0.1, Mar 31
, 2017
* @version 1.0.
1.1, Apr 12
, 2017
* @since 2.0.0
*/
@Service
...
...
@@ -244,6 +244,10 @@ public class CategoryQueryService {
public
JSONObject
getCategory
(
final
String
categoryId
)
throws
ServiceException
{
try
{
final
JSONObject
ret
=
categoryRepository
.
get
(
categoryId
);
if
(
null
==
ret
)
{
return
null
;
}
final
List
<
JSONObject
>
tags
=
getTags
(
categoryId
);
ret
.
put
(
Category
.
CATEGORY_T_TAGS
,
(
Object
)
tags
);
...
...
Write
Preview
Markdown
is supported
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