Fix for #18585
diff --git a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/search/SearchObject.java b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/search/SearchObject.java
index 4f24cfa..82b9a23 100644
--- a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/search/SearchObject.java
+++ b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/search/SearchObject.java
@@ -287,7 +287,23 @@
monitor.subTask(text);
URL siteURL = siteAdapter.getURL();
- ISite site = SiteManager.getSite(siteURL);
+ ISite site;
+ try {
+ site = SiteManager.getSite(siteURL);
+ }
+ catch (CoreException e) {
+ // Test the exception. If the exception is
+ // due to the site connection problems,
+ // allow the search to move on to
+ // the next site. Otherwise,
+ // rethrow the exception, causing the search
+ // to terminate.
+ IStatus status = e.getStatus();
+ if (status==null || status.getCode()!=ISite.SITE_ACCESS_EXCEPTION)
+ throw e;
+ monitor.worked(1);
+ return;
+ }
monitor.getWrappedProgressMonitor().subTask(UpdateUIPlugin.getResourceString(KEY_CHECKING));
monitor.beginTask("", 2);