ge search panel: catch cache load exception from search returning null

This commit is contained in:
Adam
2018-05-25 21:00:48 -04:00
parent 8860f33c5d
commit 947947e3d7

View File

@@ -34,7 +34,6 @@ import java.awt.GridBagLayout;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledExecutorService;
import javax.imageio.ImageIO; import javax.imageio.ImageIO;
import javax.swing.ImageIcon; import javax.swing.ImageIcon;
@@ -200,7 +199,7 @@ class GrandExchangeSearchPanel extends JPanel
{ {
result = itemManager.searchForItem(lookup); result = itemManager.searchForItem(lookup);
} }
catch (ExecutionException ex) catch (Exception ex) // handle com.google.common.cache.CacheLoader$InvalidCacheLoadException
{ {
log.warn("Unable to search for item {}", lookup, ex); log.warn("Unable to search for item {}", lookup, ex);
searchBox.setIcon(ERROR_ICON); searchBox.setIcon(ERROR_ICON);