X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Futil%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Futil%2FMutableOffsetMap.java;h=9f755d405907cea3036223ceb675559b25123bee;hb=c1d247ba667f38303e554bf8c4eda634d2d93b60;hp=60f52396de4abe8e3231a1d9f75322fe44a6622f;hpb=972cf3c8946759e2a5d724cb3f6e2d2cd2b06b6d;p=yangtools.git diff --git a/common/util/src/main/java/org/opendaylight/yangtools/util/MutableOffsetMap.java b/common/util/src/main/java/org/opendaylight/yangtools/util/MutableOffsetMap.java index 60f52396de..9f755d4059 100644 --- a/common/util/src/main/java/org/opendaylight/yangtools/util/MutableOffsetMap.java +++ b/common/util/src/main/java/org/opendaylight/yangtools/util/MutableOffsetMap.java @@ -8,6 +8,7 @@ package org.opendaylight.yangtools.util; import static com.google.common.base.Preconditions.checkState; +import static com.google.common.base.Verify.verifyNotNull; import static java.util.Objects.requireNonNull; import com.google.common.annotations.Beta; @@ -150,7 +151,7 @@ public abstract class MutableOffsetMap extends AbstractMap implement this(offsets, new Object[offsets.size()]); for (Entry e : source.entrySet()) { - objects[offsets.get(e.getKey())] = requireNonNull(e.getValue()); + objects[verifyNotNull(offsets.get(e.getKey()))] = requireNonNull(e.getValue()); } this.needClone = false;