Project

General

Profile

« Previous | Next » 

Revision 6805

only attempt to unlock a lock if it was created (in the finally block)

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
1053 1053
          throw new ServiceFailure("4893", msg);
1054 1054
          
1055 1055
      } finally {
1056
          lock.unlock();
1057
          logMetacat.debug("Unlocked identifier " + pid.getValue());
1058
     
1056
    	  if (lock != null) {
1057
	          lock.unlock();
1058
	          logMetacat.debug("Unlocked identifier " + pid.getValue());
1059
    	  }
1059 1060
      }
1060 1061
      
1061 1062
      return pid;

Also available in: Unified diff