minor fix

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@133238 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-10-15 16:00:20 +00:00
parent b2f63cf36b
commit 09d75b2aa6
1 changed files with 2 additions and 1 deletions

View File

@ -179,7 +179,8 @@ public class DataCatalogueImpl implements DataCatalogue{
}
// save into the hashmap
apiKeysMap.put(ckanUsername, apiToReturn);
if(apiToReturn != null)
apiKeysMap.put(ckanUsername, apiToReturn);
}catch(Exception e){
logger.error("Unable to retrieve key for user " + ckanUsername, e);