Revision 5417
Added by berkley over 14 years ago
src/edu/ucsb/nceas/metacat/dataone/CrudService.java | ||
---|---|---|
814 | 814 |
Identifier identifier = new Identifier(); |
815 | 815 |
try |
816 | 816 |
{ |
817 |
//System.out.println("converting docid '" + docid + "' to a guid."); |
|
818 |
if(docid == null || docid.trim().equals("") || docid.trim().equals("null")) |
|
819 |
{ |
|
820 |
continue; |
|
821 |
} |
|
817 | 822 |
docid = docid.substring(0, docid.lastIndexOf(".")); |
818 | 823 |
identifier.setValue(im.getGUID(docid, im.getLatestRevForLocalId(docid))); |
819 | 824 |
} |
Also available in: Unified diff
bug fix to handle nulls