Return “null” for Sones without a name.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 4 Nov 2010 21:40:21 +0000 (22:40 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 4 Nov 2010 21:40:21 +0000 (22:40 +0100)
src/main/java/net/pterodactylus/sone/template/SoneAccessor.java

index e02396a..a21794d 100644 (file)
@@ -107,7 +107,7 @@ public class SoneAccessor extends ReflectionAccessor {
                String lastName = profile.getLastName();
                if (firstName == null) {
                        if (lastName == null) {
-                               return sone.getName();
+                               return String.valueOf(sone.getName());
                        }
                        return lastName;
                }