mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-26 17:18:43 +01:00
Fix NPE
This commit is contained in:
parent
880e084006
commit
f41c7dc1f6
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user