nullsafe check for refresh
							parent
							
								
									4c3c2dce52
								
							
						
					
					
						commit
						87c8672948
					
				|  | @ -250,7 +250,11 @@ public class ClientDetailsEntity implements ClientDetails { | |||
|      */ | ||||
| 	@Transient | ||||
|     public boolean isAllowRefresh() { | ||||
|     	return getAuthorizedGrantTypes().contains("refresh_token"); | ||||
| 		if (grantTypes != null) { | ||||
| 			return getAuthorizedGrantTypes().contains("refresh_token"); | ||||
| 		} else { | ||||
| 			return false; // if there are no grants, we can't be refreshing them, can we?
 | ||||
| 		} | ||||
|     } | ||||
| 
 | ||||
| 	@Basic | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Justin Richer
						Justin Richer