ge search panel: catch cache load exception from search returning null
This commit is contained in:
@@ -34,7 +34,6 @@ import java.awt.GridBagLayout;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.swing.ImageIcon;
|
||||
@@ -200,7 +199,7 @@ class GrandExchangeSearchPanel extends JPanel
|
||||
{
|
||||
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);
|
||||
searchBox.setIcon(ERROR_ICON);
|
||||
|
||||
Reference in New Issue
Block a user