Corrected log message 52/4452/1
authorMartin Sunal <msunal@cisco.com>
Mon, 20 Jan 2014 16:23:21 +0000 (17:23 +0100)
committerMartin Sunal <msunal@cisco.com>
Mon, 20 Jan 2014 16:23:21 +0000 (17:23 +0100)
Signed-off-by: Martin Sunal <msunal@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/codec/xml/XmlDocumentUtils.java

index ca66967f9dc4ac68cad4e737673d4784256daf83..9e999be49197b1a0a9ec75c6d7f230e5d01ac466 100644 (file)
@@ -158,7 +158,7 @@ public class XmlDocumentUtils {
                 Object value = node.getValue();
                 logger.debug("Value of {}:{} is not instance of QName but is {}", baseType.getQName().getNamespace(), //
                         baseType.getQName().getLocalName(), //
-                        node != null ? value.getClass() : "null");
+                        value != null ? value.getClass() : "null");
                 if (value != null) {
                     element.setTextContent(String.valueOf(value));
                 }