Project

General

Profile

« Previous | Next » 

Revision 7197

fix NPE (logMetacat object was not initialized) that was occurring during store()

View differences:

src/edu/ucsb/nceas/metacat/dataone/hazelcast/SystemMetadataMap.java
25 25
public class SystemMetadataMap 
26 26
    implements MapStore<Identifier, SystemMetadata>, MapLoader<Identifier, SystemMetadata> {
27 27

  
28
  private Logger logMetacat = null;
28
  private Logger logMetacat = Logger.getLogger(SystemMetadataMap.class);
29 29

  
30 30
	@Override
31 31
	public void delete(Identifier arg0) {
......
63 63
	@Override
64 64
	public SystemMetadata load(Identifier pid) {
65 65
		SystemMetadata sm = null;
66
    logMetacat = Logger.getLogger(SystemMetadataMap.class);
67 66
    
67
    
68 68
    try {
69 69
			logMetacat.debug("loading from store: " + pid.getValue());
70 70
			sm = IdentifierManager.getInstance().getSystemMetadata(pid.getValue());

Also available in: Unified diff