Add password edit and verify
[controller.git] / opendaylight / web / devices / src / main / java / org / opendaylight / controller / devices / web / Devices.java
index 4c31dee54225f0350bb3568ddea671ec787571fa..c7ba7aab1e4b258706c82055e99a81f4edf14aaa 100644 (file)
@@ -125,10 +125,13 @@ public class Devices implements IDaylightWeb {
                     String nodeConnectorName = (ncName != null) ? ncName.getValue()
                             : "";
                     nodeConnectorName += " ("+nodeConnector.getID()+")";
-                    if (portStatus.getValue() == Config.ADMIN_UP) {
-                        nodeConnectorName = "<span style='color:green;'>"+nodeConnectorName+"</span>";
-                    } else if (portStatus.getValue() == Config.ADMIN_DOWN) {
-                        nodeConnectorName = "<span style='color:red;'>"+nodeConnectorName+"</span>";
+                    
+                    if (portStatus != null) {
+                        if (portStatus.getValue() == Config.ADMIN_UP) {
+                            nodeConnectorName = "<span style='color:green;'>"+nodeConnectorName+"</span>";
+                        } else if (portStatus.getValue() == Config.ADMIN_DOWN) {
+                            nodeConnectorName = "<span style='color:red;'>"+nodeConnectorName+"</span>";
+                        }
                     }
                     
                     portList.put(Short.parseShort(nodeConnectorNumberToStr),