gamerx/Backup — Issue #77: Error when disabling version checking.
Author: gamerx
Created: 2012-02-21 11:17:01+00:00
State: open
Labels: P2

It does not seem to like my setting "enableversioncheck" to false the following results

[INFO] [Backup] Loading Backup v1.8.8-dev. 2012-02-14 18:31:05 [INFO] [Backup] Configuration: 2012-02-14 18:31:05 [INFO] Interval: 30M, Max: 50, On Empty: No, Everything: No. 2012-02-14 18:31:05 [INFO] Save-All Int: -1, Split: Yes, ZIP: Yes, Path: ../../backups. 2012-02-14 18:31:05 [SEVERE] Error occurred while enabling Backup v1.8.8-dev (Is it up to date?): Task cannot be null java.lang.IllegalArgumentException: Task cannot be null at org.bukkit.craftbukkit.scheduler.CraftScheduler.scheduleAsyncRepeatingTask(CraftScheduler.java:231) at org.bukkit.craftbukkit.scheduler.CraftScheduler.scheduleAsyncDelayedTask(CraftScheduler.java:219) at org.bukkit.craftbukkit.scheduler.CraftScheduler.scheduleAsyncDelayedTask(CraftScheduler.java:223) at net.tgxn.bukkit.backup.BackupMain.onEnable(BackupMain.java:121) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:231) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:379) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:191) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:174) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

Due to:
CheckInUtil checkIn = null;
if(settings.getBooleanProperty("enableversioncheck"))
checkIn = new CheckInUtil(this.getDescription().getVersion(), strings);
pluginServer.getScheduler().scheduleAsyncDelayedTask(this, checkIn);

Have fixed, will be pushed in next dev build.