mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Avoid exceptions if the subscription service is disabled
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28942 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -117,13 +117,15 @@ public class UserFeedRetrieverWebScript extends DeclarativeWebScript
|
|||||||
Set<String> userFilter = null;
|
Set<String> userFilter = null;
|
||||||
if ((onlyFollowingStr != null) && (onlyFollowingStr.equalsIgnoreCase("true") || onlyFollowingStr.equalsIgnoreCase("t")))
|
if ((onlyFollowingStr != null) && (onlyFollowingStr.equalsIgnoreCase("true") || onlyFollowingStr.equalsIgnoreCase("t")))
|
||||||
{
|
{
|
||||||
|
userFilter = new HashSet<String>();
|
||||||
|
if (subscriptionService.isActive()) {
|
||||||
PagingFollowingResults following = subscriptionService.getFollowing(AuthenticationUtil.getRunAsUser(), new PagingRequest(-1, null));
|
PagingFollowingResults following = subscriptionService.getFollowing(AuthenticationUtil.getRunAsUser(), new PagingRequest(-1, null));
|
||||||
if (following.getPage() != null)
|
if (following.getPage() != null)
|
||||||
{
|
{
|
||||||
userFilter = new HashSet<String>();
|
|
||||||
userFilter.addAll(following.getPage());
|
userFilter.addAll(following.getPage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Set<String> activityFilter = null;
|
Set<String> activityFilter = null;
|
||||||
if (activityFilterStr != null)
|
if (activityFilterStr != null)
|
||||||
|
Reference in New Issue
Block a user