connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java
changeset 382 6a8fd4465a9b
parent 380 2c1483a2585f
child 666 4817219999f0
child 857 d66843399035
--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java	Tue Jul 28 15:08:51 2009 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java	Wed Jul 29 13:45:03 2009 -0500
@@ -407,7 +407,11 @@
 	}
 	
 	public Collection<IConnectedService> getConnectedServices(IConnection connection) {
-		return new ArrayList<IConnectedService>(connectionToConnectedServices.get(connection));
+		List<IConnectedService> connectedServices = connectionToConnectedServices.get(connection);
+		if (connectedServices != null)
+			return new ArrayList<IConnectedService>(connectedServices);
+		
+		return null;
 	}
 
 	private File getConnectionStorageFile() {