Check for null world
This commit is contained in:
parent
5c2f2ecfc7
commit
e8b4129c3a
|
@ -656,7 +656,11 @@ public class ChallengesManager
|
||||||
public void migrateDatabase(User user, World world)
|
public void migrateDatabase(User user, World world)
|
||||||
{
|
{
|
||||||
world = Util.getWorld(world);
|
world = Util.getWorld(world);
|
||||||
|
if (world == null) {
|
||||||
|
this.addon.logError("No such world!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (user.isPlayer())
|
if (user.isPlayer())
|
||||||
{
|
{
|
||||||
Utils.sendMessage(user, user.getTranslation("challenges.messages.migrate-start"));
|
Utils.sendMessage(user, user.getTranslation("challenges.messages.migrate-start"));
|
||||||
|
|
Loading…
Reference in New Issue