commit | 57add212779b1896997486647439488042694d5a | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Tue Jan 16 13:04:42 2018 -0800 |
committer | Thomas Vachuska <tom@opennetworking.org> | Wed Jan 17 00:18:00 2018 +0000 |
tree | 39a50d33abc99d1aff364df0bba4299c37e6e9eb | |
parent | 3e0e92e254c9697ae9274b4f16cdf6c72923b77d [diff] |
Sonar suggestion - null pointer check had the wrong boolean operator Change-Id: I7db12414f4c04694067c69d7a949d10ae740efbd
diff --git a/apps/netconf/client/src/main/java/org/onosproject/netconf/client/impl/NetconfTranslatorImpl.java b/apps/netconf/client/src/main/java/org/onosproject/netconf/client/impl/NetconfTranslatorImpl.java index b2c2161..c563204 100644 --- a/apps/netconf/client/src/main/java/org/onosproject/netconf/client/impl/NetconfTranslatorImpl.java +++ b/apps/netconf/client/src/main/java/org/onosproject/netconf/client/impl/NetconfTranslatorImpl.java
@@ -312,7 +312,7 @@ } if (dbr instanceof LeafNode.Builder && - (nodes != null || !nodes.isEmpty())) { + (nodes != null && !nodes.isEmpty())) { //exception "leaf/leaf-list can not have child node" }