Revision 4778
Added by daigle almost 16 years ago
src/edu/ucsb/nceas/metacat/service/SessionService.java | ||
---|---|---|
145 | 145 |
* the id of the session to update. |
146 | 146 |
*/ |
147 | 147 |
public static synchronized void touchSession(String sessionId) { |
148 |
if (isSessionRegistered(sessionId)) { |
|
148 |
if (sessionId != null && isSessionRegistered(sessionId)) {
|
|
149 | 149 |
SessionData sessionData = getRegisteredSession(sessionId); |
150 | 150 |
sessionData.setLastAccessedTime(); |
151 | 151 |
} |
Also available in: Unified diff
Check for null session ID when touching session.