X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Fimpl%2Ftest%2Fstructures%2FCont.java;h=00783537d8aff029b55ac1c0d9e6f25ec1f941b6;hb=d1ca10654c2535c3c2129523d520979821f8b3fd;hp=a1028ca0327ab58773f91c5c8de0c1b279f1ba60;hpb=95016a3bb614999a722a5621c7abb0eb7afd63c1;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;