Skip to content

Commit

Permalink
ge search panel: catch cache load exception from search returning null
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed May 26, 2018
1 parent 8860f33 commit 947947e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
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;
Expand Down Expand Up @@ -200,7 +199,7 @@ private void priceLookup(boolean exactMatch)
{
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);
Expand Down

0 comments on commit 947947e

Please sign in to comment.