From f41c7dc1f6a255d2b1e163256555121cb6e911e0 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 9 Jun 2016 18:06:00 +1000 Subject: [PATCH] Fix NPE --- Core/src/main/java/com/intellectualcrafters/plot/PS.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/PS.java b/Core/src/main/java/com/intellectualcrafters/plot/PS.java index e14485896..6118e035f 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/PS.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/PS.java @@ -1854,7 +1854,7 @@ public class PS { String[] split = lastVersionString.split("\\."); this.lastVersion = new int[]{Integer.parseInt(split[0]), Integer.parseInt(split[1]), Integer.parseInt(split[2])}; } - if (checkVersion(new int[]{3,4,0}, lastVersion)) { + if (lastVersion != null && checkVersion(new int[]{3,4,0}, lastVersion)) { Settings.convertLegacy(configFile); if (config.contains("worlds")) { ConfigurationSection worldSection = config.getConfigurationSection("worlds");