Skip to content

Commit

Permalink
Check for null world
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Apr 16, 2022
1 parent 5c2f2ec commit e8b4129
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,11 @@ public void wipePlayers(String gamemode)
public void migrateDatabase(User user, World world)
{
world = Util.getWorld(world);

if (world == null) {
this.addon.logError("No such world!");
return;
}

if (user.isPlayer())
{
Utils.sendMessage(user, user.getTranslation("challenges.messages.migrate-start"));
Expand Down

0 comments on commit e8b4129

Please sign in to comment.