Fixed NPE when running a custom build of CraftBukkit. This fixes issue #BUKKIT-765

This commit is contained in:
Nathan Adams
2012-02-18 14:06:21 +00:00
parent d057ee1e07
commit 3b634b14f6
3 changed files with 6 additions and 10 deletions

View File

@@ -65,8 +65,8 @@ public class AutoUpdater {
new Thread() {
@Override
public void run() {
current = service.getArtifact(currentSlug);
latest = service.getArtifact("latest-" + channel);
current = service.getArtifact(currentSlug, "current artifact information; perhaps you are running a custom version?");
latest = service.getArtifact("latest-" + channel, "latest artifact information");
if (isUpdateAvailable()) {
if ((current.isBroken()) && (onBroken.contains(WARN_CONSOLE))) {