Revision 5554
Added by berkley about 14 years ago
src/edu/ucsb/nceas/metacat/dataone/CrudService.java | ||
---|---|---|
806 | 806 |
info.setSize(new Long(size.trim()).longValue()); |
807 | 807 |
} |
808 | 808 |
//add the ObjectInfo to the ObjectList |
809 |
if(info.getIdentifier().getValue() != null) |
|
809 |
if(info.getIdentifier().getValue() != null || |
|
810 |
(info.getObjectFormat() != null && |
|
811 |
!info.getObjectFormat().toString().trim().equals(""))) |
|
810 | 812 |
{ //id can be null from tests. should not happen in production. |
811 | 813 |
ol.addObjectInfo(info); |
812 | 814 |
} |
Also available in: Unified diff
checking for a null objectformat