Fix NPE in SimpleMapCache
[lispflowmapping.git] / mappingservice / mapcache / src / main / java / org / opendaylight / lispflowmapping / mapcache / SimpleMapCache.java
index b698c7fb5d62e334a7637bd211e9e4d5635cdff5..a2e88fcf4245c044651c351854e654b65c16a2c9 100644 (file)
@@ -108,7 +108,7 @@ public class SimpleMapCache implements ILispMapCache {
         SimpleImmutableEntry<Eid, Map<String, ?>> daoEntry = dao.getBestPair(MaskUtil.normalize(eid));
         if (daoEntry != null) {
             if (xtrId != null) {
-                ILispDAO xtrIdTable = getXtrIdTable(eid, (ILispDAO) daoEntry.getValue().get(SubKeys.XTRID_RECORDS));
+                ILispDAO xtrIdTable = (ILispDAO) daoEntry.getValue().get(SubKeys.XTRID_RECORDS);
                 if (xtrIdTable != null) {
                     return xtrIdTable.getSpecific(xtrId, SubKeys.RECORD);
                 }