Project

General

Profile

« Previous | Next » 

Revision 6292

do not delete if the sysmeta doesn't exist

View differences:

IdentifierManager.java
964 964
    {
965 965
    	String guid = sysmeta.getIdentifier().getValue();
966 966
    	// remove any provisional records -- it is the responsibility of the caller to check this
967
    	if (systemMetadataExisits(guid, true)) {
968
    		deleteSystemMetadata(guid);
969
    	}
967
    	try {
968
	    	if (systemMetadataExisits(guid, true)) {
969
	    		deleteSystemMetadata(guid);
970
	    	}
971
    	} catch (McdbDocNotFoundException e) {
972
			// ignore
973
		}
970 974
    	// insert the true record
971 975
        insertSystemMetadata(guid, false);
972 976
        updateSystemMetadata(sysmeta);

Also available in: Unified diff