Project

General

Profile

« Previous | Next » 

Revision 6496

return null instead of throwing an exception when pid is not found in store

View differences:

src/edu/ucsb/nceas/metacat/dataone/hazelcast/SystemMetadataMap.java
62 62
			System.out.println("loading from store: " + pid.getValue());
63 63
			sm = IdentifierManager.getInstance().getSystemMetadata(pid.getValue());
64 64
		} catch (McdbDocNotFoundException e) {
65
			//throw new RuntimeException(e.getMessage(), e);
66
			// not found => null
67
			return null;
68
		}
69
		catch (Exception e) {
65 70
			throw new RuntimeException(e.getMessage(), e);
66 71
		}
67 72
		return sm;

Also available in: Unified diff