Corrected log message
[yangtools.git] / 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));
                 }