Handle nullable lists in elanmanager
[netvirt.git] / elanmanager / impl / src / main / java / org / opendaylight / netvirt / elan / utils / ElanEtreeUtils.java
index 3ee407e19513a925f8b227e5fcd5aa69b51141d7..33c6da02564f305a39856cd26306832092bf940d 100644 (file)
@@ -8,6 +8,7 @@
 package org.opendaylight.netvirt.elan.utils;
 
 import com.google.common.base.Optional;
+import javax.annotation.Nullable;
 import javax.inject.Inject;
 import javax.inject.Singleton;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
@@ -25,6 +26,7 @@ public class ElanEtreeUtils {
         this.broker = broker;
     }
 
+    @Nullable
     public EtreeLeafTagName getEtreeLeafTagByElanTag(long elanTag) {
         InstanceIdentifier<ElanTagName> elanId = ElanUtils.getElanInfoEntriesOperationalDataPath(elanTag);
         Optional<ElanTagName> existingElanInfo = ElanUtils.read(broker,