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:
parent
b2f63cf36b
commit
09d75b2aa6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue