fix(serialize-xml): Prevent unexpected dots in NativeXmlReader.getPath

This commit is contained in:
Johannes Frohnmeyer 2024-04-17 11:06:12 +02:00
parent a1b0df3caa
commit bf5506d1d0
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 2 additions and 2 deletions

View File

@ -700,9 +700,9 @@ public class NativeXmlReader implements Closeable {
case XmlScope.TAG_BODY:
case XmlScope.DANGLING_NAME:
case XmlScope.NONEMPTY_DOCUMENT:
if (first) first = false;
else result.append('.');
if (pathNames[i] != null) {
if (first) first = false;
else result.append('.');
result.append(pathNames[i]);
}
break;