Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.e4.core.services.events.IEventBroker;
import org.eclipse.swt.SWTException;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.PlatformUI;
Expand Down Expand Up @@ -110,7 +111,7 @@ protected IStatus run(IProgressMonitor monitor) {
try (var stream = url.openStream()) {
downloadedImage = new Image(display, stream);
}
} catch (IOException e) {
} catch (IOException | SWTException e) {
CopilotCore.LOGGER.error(e);
}
if (downloadedImage != null) {
Expand All @@ -121,8 +122,8 @@ protected IStatus run(IProgressMonitor monitor) {
downloadedImage.dispose();
}
avatarCache.put(user, result);
jobs.remove(user);
}
jobs.remove(user);
return Status.OK_STATUS;
}
};
Expand Down
Loading