- try {
- icon.setIcon(new ImageIcon(get()));
- } catch (InterruptedException e) {
- } catch (ExecutionException e) {
+ BookInfo current = DetailsPanel.this.info;
+ if (current != null && current.getId().equals(myId)) {
+ try {
+ Image img = get();
+ if (img != null)
+ icon.setIcon(new ImageIcon(img));
+ } catch (InterruptedException e) {
+ } catch (ExecutionException e) {
+ }