gravitylow / Updater

Easy automatic updates for Bukkit
MIT License
35 stars 41 forks source link

IndexOutOfBoundsException #6

Closed fr34kyn01535 closed 11 years ago

fr34kyn01535 commented 11 years ago

With the following implementation: if(ConfigurationManager.AutoUpdate){ Updater updater = new Updater(this, "BAMradio", this.getFile(), Updater.UpdateType.DEFAULT, false); }

I get the following exception: 12:34:44 [SEVERE] java.lang.IndexOutOfBoundsException: index (0) must be less th an size (0) 12:34:44 [SEVERE] at com.google.common.base.Preconditions.checkElementInde x(Preconditions.java:301) 12:34:44 [SEVERE] at com.google.common.base.Preconditions.checkElementInde x(Preconditions.java:280) 12:34:44 [SEVERE] at com.google.common.collect.EmptyImmutableList.get(Empt yImmutableList.java:106) 12:34:44 [SEVERE] at net.h31ix.updater.Updater.versionCheck(Updater.java:4 63) 12:34:44 [SEVERE] at net.h31ix.updater.Updater.access$400(Updater.java:42)

12:34:44 [SEVERE] at net.h31ix.updater.Updater$UpdateRunnable.run(Updater. java:593) 12:34:44 [SEVERE] at java.lang.Thread.run(Unknown Source)

gravitylow commented 11 years ago

https://github.com/h31ix/Updater/blob/master/src/net/h31ix/updater/Updater.java#L462 You don't have a 'v' in this version: http://dev.bukkit.org/bukkit-plugins/bamradio/files/3-bamradio-1-4/

The actual error is caused by the fact that you don't have an author listed in your plugin.yml

fr34kyn01535 commented 11 years ago

Thank you!