diff --git a/src/main/java/com/jagrosh/jmusicbot/commands/owner/PlaylistCmd.java b/src/main/java/com/jagrosh/jmusicbot/commands/owner/PlaylistCmd.java index 0caf39756..83064d5c4 100644 --- a/src/main/java/com/jagrosh/jmusicbot/commands/owner/PlaylistCmd.java +++ b/src/main/java/com/jagrosh/jmusicbot/commands/owner/PlaylistCmd.java @@ -72,7 +72,11 @@ public MakelistCmd() protected void execute(CommandEvent event) { String pname = event.getArgs().replaceAll("\\s+", "_"); - if(bot.getPlaylistLoader().getPlaylist(pname)==null) + if(pname == null || pname.isEmpty()) + { + event.replyError("Please provide a name for the playlist!"); + } + else if(bot.getPlaylistLoader().getPlaylist(pname) == null) { try {