connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java
changeset 1966 67581ab567b1
parent 1846 02332f802224
--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java	Wed Sep 08 17:12:10 2010 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java	Wed Sep 08 17:13:42 2010 -0500
@@ -211,8 +211,10 @@
 
 	public Collection<String> getCompatibleConnectionTypeIds(IService service) {
 		Collection<String> compatibleConnectionTypeIds = new HashSet<String>();
-		for (IConnectedServiceFactory factory : connectedServiceFactories) {
-			compatibleConnectionTypeIds.addAll(factory.getCompatibleConnectionTypeIds(service));
+		if (service != null) {
+			for (IConnectedServiceFactory factory : connectedServiceFactories) {
+				compatibleConnectionTypeIds.addAll(factory.getCompatibleConnectionTypeIds(service));
+			}
 		}
 		return compatibleConnectionTypeIds;
 	}