mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
prevent NPE
This commit is contained in:
@@ -127,7 +127,7 @@ public class CategoryREST extends AbstractREST {
|
|||||||
Date newerThanDate = newerThan == null ? null : new Date(Long.valueOf(newerThan));
|
Date newerThanDate = newerThan == null ? null : new Date(Long.valueOf(newerThan));
|
||||||
|
|
||||||
List<Long> excludedIds = null;
|
List<Long> excludedIds = null;
|
||||||
if (excludedSubscriptionIds != null && !"null".equals(excludedSubscriptionIds)) {
|
if (StringUtils.isNotEmpty(excludedSubscriptionIds)) {
|
||||||
excludedIds = Lists.newArrayList();
|
excludedIds = Lists.newArrayList();
|
||||||
for (String excludedId : excludedSubscriptionIds.split(",")) {
|
for (String excludedId : excludedSubscriptionIds.split(",")) {
|
||||||
excludedIds.add(Long.valueOf(excludedId));
|
excludedIds.add(Long.valueOf(excludedId));
|
||||||
|
|||||||
Reference in New Issue
Block a user