Catch any exception from a discovery agent so it doesn't kill the Remote Connections view
authorEd Swartz <ed.swartz@nokia.com>
Tue, 12 Jan 2010 09:37:50 -0600
changeset 756 218edd9d77f1
parent 755 417baed711a7
child 757 dfe9c76b4eb2
Catch any exception from a discovery agent so it doesn't kill the Remote Connections view
connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/RemoteConnectionsActivator.java
--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/RemoteConnectionsActivator.java	Mon Jan 11 10:07:03 2010 -0600
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/RemoteConnectionsActivator.java	Tue Jan 12 09:37:50 2010 -0600
@@ -132,7 +132,8 @@
 					try {
 						((IDeviceDiscoveryAgent) toTest).start();
 						return true;
-					} catch (CoreException e) {
+					} catch (Throwable e) {
+						// since we launch arbitrary code, catch any exception to prevent killing the view
 						logError(e);
 					}
 				}