NIHVIVO-1232 fix NullPointerException when there is no session.

This commit is contained in:
jeb228 2010-11-15 16:07:37 +00:00
parent d53a900e11
commit a08706c212

View file

@ -215,6 +215,10 @@ public class SelfEditingIdentifierFactory implements IdentifierBundleFactory {
}
private IdentifierBundle getFromSession(ServletRequest req, HttpSession session ){
if (session == null) {
return null;
}
NetId netid = (NetId)session.getAttribute(NETID_IN_SESSION);
SelfEditing sed = (SelfEditing)session.getAttribute(URI_IN_SESSION);