From 5506312b83bddb5bf08bf9f551a8f3dd4e788da6 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sun, 18 Sep 2011 22:18:54 +0200 Subject: Ignore ComputationExceptions while loading users async --- Essentials/src/com/earth2me/essentials/UserMap.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/UserMap.java b/Essentials/src/com/earth2me/essentials/UserMap.java index 271d7d0ab..69ddb5354 100644 --- a/Essentials/src/com/earth2me/essentials/UserMap.java +++ b/Essentials/src/com/earth2me/essentials/UserMap.java @@ -1,11 +1,14 @@ package com.earth2me.essentials; import com.google.common.base.Function; +import com.google.common.collect.ComputationException; import com.google.common.collect.MapMaker; import java.io.File; import java.util.HashSet; import java.util.Set; import java.util.concurrent.ConcurrentMap; +import java.util.logging.Level; +import org.bukkit.Bukkit; import org.bukkit.entity.Player; @@ -47,6 +50,10 @@ public class UserMap implements Function, IConf { // Ignore these } + catch (ComputationException ex) + { + Bukkit.getLogger().log(Level.INFO, "Failed to preload user "+name, ex); + } } } }); -- cgit v1.2.3