Added a check during getListContact

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@141478 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2017-01-05 15:49:36 +00:00
parent ac4dc502e6
commit 4b6648616c
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ public class UserStore implements ContactFetcher{
@Override
public void getListContact(AsyncCallback<List<InfoContactModel>> callback, boolean reloadList){
if(reloadList || listAllContact==null)
if(reloadList || listAllContact==null || listAllContact.size()==0)
loadAllUsersFromServer(callback);
else
callback.onSuccess(listAllContact);