fixing unknown object (they are old report, template and so on)
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/storagehub-client-wrapper@174221 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5a20d9e24e
commit
663d342d35
|
@ -238,7 +238,8 @@ public class HLMapper {
|
|||
logger.warn("The content is null for item: "+itemAb.getId());
|
||||
theFileItem.setMimeType(aC.getMimeType());
|
||||
theFileItem.setSize(aC.getSize());
|
||||
}
|
||||
}else
|
||||
logger.warn("The content is null for item: "+itemAb.getId());
|
||||
|
||||
//TODO ADD VERSION NAME
|
||||
|
||||
|
@ -290,6 +291,10 @@ public class HLMapper {
|
|||
logger.trace("The item: "+item);
|
||||
logger.trace("The item id: "+item.getId());
|
||||
|
||||
if(theItem==null){
|
||||
logger.info("Mapping unknown object as simple FileItem");
|
||||
theItem = new FileItem();
|
||||
}
|
||||
theItem.setId(item.getId());
|
||||
theItem.setName(itemName);
|
||||
theItem.setPath(item.getPath());
|
||||
|
|
Loading…
Reference in New Issue