check added on getRecentLikedFeeds

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@130990 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-08-06 06:41:53 +00:00
parent fbae17bb34
commit fa05ed5202
1 changed files with 1 additions and 2 deletions

View File

@ -1744,8 +1744,7 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore {
// get the list of liked feeds
List<String> likedFeedsIdsByUser = getAllLikedFeedIdsByUser(userid);
if(likedFeedsIdsByUser != null){
if(likedFeedsIdsByUser != null && !likedFeedsIdsByUser.isEmpty()){
for(int i = likedFeedsIdsByUser.size() - 1; i >= 0; i--){
String feedId = likedFeedsIdsByUser.get(i);
try{