X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Fimpl%2Ftest%2Fstructures%2FCont.java;h=00783537d8aff029b55ac1c0d9e6f25ec1f941b6;hb=de12565a7795af98788f8150eb0072f9c985f4a1;hp=a1028ca0327ab58773f91c5c8de0c1b279f1ba60;hpb=befccf53b65b379b476290f55590f54c7f250ebb;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/structures/Cont.java b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/structures/Cont.java index a1028ca032..00783537d8 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/structures/Cont.java +++ b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/structures/Cont.java @@ -24,7 +24,11 @@ public class Cont extends LstItem { return false; } Cont cont = (Cont) obj; - if (!this.name.equals(cont.name)) { + if (this.name == null) { + if (cont.name != null) { + return false; + } + } else if (!this.name.equals(cont.name)) { return false; } return true;