Revision 6421
Added by ben leinfelder about 13 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
449 | 449 |
|
450 | 450 |
// log the read event |
451 | 451 |
String principal = Constants.PUBLIC_SUBJECT; |
452 |
if (session.getSubject() != null) { |
|
452 |
if (session != null && session.getSubject() != null) {
|
|
453 | 453 |
principal = session.getSubject().getValue(); |
454 | 454 |
} |
455 | 455 |
EventLog.getInstance().log(null, principal, localId, "read"); |
Also available in: Unified diff
check for null session before looking at subject