# HG changeset patch # User Ed Swartz # Date 1277854306 18000 # Node ID 79c7bcfddffc559453266c87dcdce6a92835bd5f # Parent c431b953b86395bc32571f98d4bec1e98b8e057b Catch exceptions thrown by remote connection listener implementations so they don't propagate too high in the call stack. diff -r c431b953b863 -r 79c7bcfddffc connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java --- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java Tue Jun 29 18:12:13 2010 -0500 +++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java Tue Jun 29 18:31:46 2010 -0500 @@ -301,7 +301,11 @@ if (listeners == null) return; for (IConnectionsManagerListener listener : listeners) { - listener.connectionStoreChanged(); + try { + listener.connectionStoreChanged(); + } catch (Throwable t) { + RemoteConnectionsActivator.logError(t); + } } } @@ -451,7 +455,11 @@ if (listeners == null) return; for (IConnectionsManagerListener listener : listeners) { - listener.displayChanged(); + try { + listener.displayChanged(); + } catch (Throwable t) { + RemoteConnectionsActivator.logError(t); + } } } @@ -494,7 +502,11 @@ if (connectionListeners == null) return; for (IConnectionListener listener : connectionListeners) { - listener.connectionAdded(connection); + try { + listener.connectionAdded(connection); + } catch (Throwable t) { + RemoteConnectionsActivator.logError(t); + } } } @@ -502,7 +514,11 @@ if (connectionListeners == null) return; for (IConnectionListener listener : connectionListeners) { - listener.connectionRemoved(connection); + try { + listener.connectionRemoved(connection); + } catch (Throwable t) { + RemoteConnectionsActivator.logError(t); + } } } @@ -510,7 +526,11 @@ if (connectionListeners == null) return; for (IConnectionListener listener : connectionListeners) { - listener.currentConnectionSet(connection); + try { + listener.currentConnectionSet(connection); + } catch (Throwable t) { + RemoteConnectionsActivator.logError(t); + } } }