Project

General

Profile

« Previous | Next » 

Revision 5553

Added by berkley over 13 years ago

backtracking

View differences:

src/edu/ucsb/nceas/metacat/dataone/CrudService.java
808 808
              //add the ObjectInfo to the ObjectList
809 809
              if(info.getIdentifier().getValue() != null)
810 810
              { //id can be null from tests.  should not happen in production.
811
                  try
812
                  { //try to serialize info.  if it cannot be serialized, then
813
                    //don't add it to the info.  bad SM can be added via tests
814
                    //which can break this code.
815
                      serializeObjectInfo(info);
816
                      ol.addObjectInfo(info);
817
                  }
818
                  catch(Exception e)
819
                  {
820
                      logCrud.error("Error serializing objectInfo with id " + 
821
                              info.getIdentifier().getValue() + " message: " + e.getMessage());
822
                  } //don't do anything
823
                  
811
                  ol.addObjectInfo(info);
824 812
              }
825 813
             
826 814
          }

Also available in: Unified diff