Project

General

Profile

« Previous | Next » 

Revision 6904

Added by Chris Jones over 12 years ago

In IdentifierManager.updateSystemMetadata(), add a check for invalid system metadata (fields that throw a NullPointerException on access) to ensure that system metadata is populated correctly. Updated calling classes to handle the exception.

View differences:

SystemMetadataMap.java
7 7
import java.util.Set;
8 8

  
9 9
import org.apache.log4j.Logger;
10
import org.dataone.service.exceptions.InvalidSystemMetadata;
10 11
import org.dataone.service.types.v1.Identifier;
11 12
import org.dataone.service.types.v1.ObjectInfo;
12 13
import org.dataone.service.types.v1.ObjectList;
......
59 60
		} catch (SQLException e) {
60 61
	      throw new RuntimeException(e.getMessage(), e);
61 62
	      
62
    }
63
    } catch (InvalidSystemMetadata e) {
64
        throw new RuntimeException(e.getMessage(), e);
65
        }
63 66
	}
64 67

  
65 68
	@Override

Also available in: Unified diff