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 Wed Dec 30 11:43:43 2009 -0600
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java Wed Dec 30 12:07:21 2009 -0600
@@ -416,8 +416,10 @@
private void disposeConnection(IConnection connection) {
List<IConnectedService> connectedServices = connectionToConnectedServices.get(connection);
- for (IConnectedService connectedService : connectedServices) {
- connectedService.dispose();
+ if (connectedServices != null) {
+ for (IConnectedService connectedService : connectedServices) {
+ connectedService.dispose();
+ }
}
connection.dispose();
}