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:
parent
ac4dc502e6
commit
4b6648616c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue