Project

General

Profile

« Previous | Next » 

Revision 5159

Added by daigle about 15 years ago

Make sure session data exists before extracting information

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
851 851
				// aware of session expiration on every request
852 852
			} else {
853 853
				SessionData sessionData = RequestUtil.getSessionData(request);
854
				
855
				if (sessionData != null) {
856
					userName = sessionData.getUserName();
857
					password = sessionData.getPassword();
858
					groupNames = sessionData.getGroupNames();
859
					sessionId = sessionData.getId();
860
				}
854 861

  
855
				userName = sessionData.getUserName();
856
				password = sessionData.getPassword();
857
				groupNames = sessionData.getGroupNames();
858
				sessionId = sessionData.getId();
859

  
860 862
				logMetacat.info("The user is : " + userName);
861 863
			}
862 864
			// Now that we know the session is valid, we can delegate the

Also available in: Unified diff