prevent NPE

This commit is contained in:
Athou
2013-08-13 15:35:02 +02:00
parent 440922380d
commit 1e13c11061

View File

@@ -127,7 +127,7 @@ public class CategoryREST extends AbstractREST {
Date newerThanDate = newerThan == null ? null : new Date(Long.valueOf(newerThan));
List<Long> excludedIds = null;
if (excludedSubscriptionIds != null && !"null".equals(excludedSubscriptionIds)) {
if (StringUtils.isNotEmpty(excludedSubscriptionIds)) {
excludedIds = Lists.newArrayList();
for (String excludedId : excludedSubscriptionIds.split(",")) {
excludedIds.add(Long.valueOf(excludedId));