Browse Source

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

Luke Taylor 17 năm trước cách đây
mục cha
commit
2a0a041386

+ 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;
     }
 }