diff --git a/src/main/java/net/dv8tion/jda/internal/entities/RoleImpl.java b/src/main/java/net/dv8tion/jda/internal/entities/RoleImpl.java index f4e4c267db..0828392c57 100644 --- a/src/main/java/net/dv8tion/jda/internal/entities/RoleImpl.java +++ b/src/main/java/net/dv8tion/jda/internal/entities/RoleImpl.java @@ -289,7 +289,7 @@ public RoleAction createCopy(@Nonnull Guild guild) .setMentionable(mentionable) .setName(name) .setPermissions(rawPermissions) - .setIcon(icon.getEmoji()); // we can only copy the emoji as we don't have access to the Icon instance + .setIcon(icon == null ? null : icon.getEmoji()); // we can only copy the emoji as we don't have access to the Icon instance } @Nonnull