mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
fix NPE
This commit is contained in:
@@ -62,8 +62,8 @@ public class FeedEntriesREST extends JSONPage {
|
||||
entries.getEntries().addAll(buildEntries(subscription));
|
||||
|
||||
} else {
|
||||
FeedCategory feedCategory = feedCategoryService.findById("all"
|
||||
.equals(id) ? null : Long.valueOf(id));
|
||||
FeedCategory feedCategory = "all".equals(id) ? null
|
||||
: feedCategoryService.findById(Long.valueOf(id));
|
||||
Collection<FeedSubscription> subscriptions = "all".equals(id) ? feedSubscriptionService
|
||||
.findAll(getUser()) : feedSubscriptionService
|
||||
.findWithCategory(getUser(), feedCategory);
|
||||
|
||||
Reference in New Issue
Block a user