check if session id is null before trying to return it as ESString
This commit is contained in:
		
							parent
							
								
									b2ac4ac000
								
							
						
					
					
						commit
						3c2e97fd20
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -47,6 +47,9 @@ public class ESUser extends ESNode {
 | 
			
		|||
	        return new ESString (user.uid);
 | 
			
		||||
	}
 | 
			
		||||
	if ("sessionID".equals (propname)) {
 | 
			
		||||
	    if (user == null || user.getSessionID () == null)
 | 
			
		||||
	        return ESNull.theNull;
 | 
			
		||||
	    else
 | 
			
		||||
	        return new ESString (user.getSessionID ());
 | 
			
		||||
	}
 | 
			
		||||
	return super.getProperty (propname, hash);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue