diff --git a/src/main/java/org/gcube/portlets/user/socialprofile/client/ui/DisplayProfile.java b/src/main/java/org/gcube/portlets/user/socialprofile/client/ui/DisplayProfile.java index 48d30e1..0f0fdb0 100644 --- a/src/main/java/org/gcube/portlets/user/socialprofile/client/ui/DisplayProfile.java +++ b/src/main/java/org/gcube/portlets/user/socialprofile/client/ui/DisplayProfile.java @@ -273,6 +273,8 @@ public class DisplayProfile extends Composite { */ private String getUserToShowId() { String encodedOid = Encoder.encode(GCubeSocialNetworking.USER_PROFILE_OID); + if (Window.Location.getParameter(encodedOid) == null) + return null; String encodedUserId = Window.Location.getParameter(encodedOid); return Encoder.decode(encodedUserId); }