[ONOS-7518] NullPointerException in LinkDiscovery

Change-Id: I131819c2f761d231d185d211c9e369de80972ad1
diff --git a/providers/lldpcommon/src/main/java/org/onosproject/provider/lldpcommon/LinkDiscovery.java b/providers/lldpcommon/src/main/java/org/onosproject/provider/lldpcommon/LinkDiscovery.java
index ec2c1f4..3631e16 100644
--- a/providers/lldpcommon/src/main/java/org/onosproject/provider/lldpcommon/LinkDiscovery.java
+++ b/providers/lldpcommon/src/main/java/org/onosproject/provider/lldpcommon/LinkDiscovery.java
@@ -21,6 +21,7 @@
 import io.netty.util.Timeout;
 import io.netty.util.TimerTask;
 
+import io.netty.util.internal.StringUtil;
 import org.onlab.packet.Ethernet;
 import org.onlab.packet.MacAddress;
 import org.onlab.packet.ONOSLLDP;
@@ -132,6 +133,9 @@
     public void addPort(Port port) {
         Long portNum = port.number().toLong();
         String portName = port.annotations().value(PORT_NAME);
+        if (portName == null) {
+            portName = StringUtil.EMPTY_STRING;
+        }
 
         boolean newPort = !containsPort(portNum);
         portMap.put(portNum, portName);