X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FProfile.java;h=7662eda76a030e6c3bac69ef085a0afddbfbe77a;hb=6306081e81de727dbf51cda343677358ce85e0c6;hp=242c96e4bde26b5371cf1b2a535bc15c14b8a559;hpb=d71e8718a32c7053b352ba6d76100c24ecbeacea;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/data/Profile.java b/src/main/java/net/pterodactylus/sone/data/Profile.java index 242c96e..7662eda 100644 --- a/src/main/java/net/pterodactylus/sone/data/Profile.java +++ b/src/main/java/net/pterodactylus/sone/data/Profile.java @@ -51,6 +51,9 @@ public class Profile { * The profile to copy */ public Profile(Profile profile) { + if (profile == null) { + return; + } this.firstName = profile.firstName; this.middleName = profile.middleName; this.lastName = profile.lastName;