We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93d3f77 commit 890b951Copy full SHA for 890b951
core/src/jvmMain/kotlin/nl/adaptivity/xmlutil/StAXWriter.kt
@@ -113,7 +113,7 @@ class StAXWriter(
113
try {
114
if (namespace.isNullOrEmpty() &&
115
prefix.isNullOrEmpty() &&
116
- delegate.namespaceContext.getNamespaceURI("").isNullOrEmpty()
+ delegate.namespaceContext?.getNamespaceURI("").isNullOrEmpty()
117
) {
118
if (isEmpty) {
119
delegate.writeEmptyElement(localName)
0 commit comments