Fix NPE when component can't be found

Change-Id: I803240cde2d2b2c5efeee03617d0e3a275a2f570
diff --git a/core/net/src/main/java/org/onosproject/cfg/impl/ComponentConfigManager.java b/core/net/src/main/java/org/onosproject/cfg/impl/ComponentConfigManager.java
index 011733c..21a54b3 100644
--- a/core/net/src/main/java/org/onosproject/cfg/impl/ComponentConfigManager.java
+++ b/core/net/src/main/java/org/onosproject/cfg/impl/ComponentConfigManager.java
@@ -379,6 +379,11 @@
         try {
             Configuration cfg = cfgAdmin.getConfiguration(componentName, null);
             Map<String, ConfigProperty> map = properties.get(componentName);
+            if (map == null) {
+                //  Prevent NPE if the component isn't there
+                log.warn("Component not found for " + componentName);
+                return;
+            }
             Dictionary<String, Object> props = new Hashtable<>();
             map.values().stream().filter(p -> p.value() != null)
                     .forEach(p -> props.put(p.name(), p.value()));