Revision 7063
Added by ben leinfelder almost 13 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
470 | 470 |
|
471 | 471 |
// TODO: check credentials |
472 | 472 |
// cannot be called by public |
473 |
if (session.getSubject() == null) { |
|
473 |
if (session == null || session.getSubject() == null) {
|
|
474 | 474 |
String msg = "No session was provided."; |
475 | 475 |
failure = new NotAuthorized("2152", msg); |
476 | 476 |
setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.FAILED, failure); |
Also available in: Unified diff
do not replicate if session is null