diff --git a/Essentials/src/com/earth2me/essentials/UserData.java b/Essentials/src/com/earth2me/essentials/UserData.java index 12f294dc7..5df47f323 100644 --- a/Essentials/src/com/earth2me/essentials/UserData.java +++ b/Essentials/src/com/earth2me/essentials/UserData.java @@ -86,7 +86,11 @@ public abstract class UserData extends PlayerExtension implements IConf { String defaultWorld = config.getString("home.default"); worldHome = "home.worlds." + defaultWorld; } - return config.getLocation(worldHome, getServer()); + Location loc = config.getLocation(worldHome, getServer()); + if (loc == null) { + throw new Exception(); + } + return loc; } else { throw new Exception("You have not set a home."); }