소스 검색

SEC-719: removed explicit toString() call to prevent NPE when userInfo is null

Luke Taylor 17 년 전
부모
커밋
2a0a041386
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      portlet/src/main/java/org/springframework/security/ui/portlet/PortletAuthenticationDetails.java

+ 1 - 1
portlet/src/main/java/org/springframework/security/ui/portlet/PortletAuthenticationDetails.java

@@ -28,6 +28,6 @@ public class PortletAuthenticationDetails implements Serializable {
     }
     
     public String toString() {
-    	return "User info: " + userInfo.toString();
+    	return "User info: " + userInfo;
     }
 }