Skip to content

Commit 37c20d8

Browse files
authored
Merge pull request #162 from seberget/master
Fixes #161 - Made sure we set the parent if it where not set.
2 parents e378890 + 797fdd6 commit 37c20d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/src/java/org/jdom2/contrib/input/scanner/ElementScanner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ public XMLReader createXMLReader() throws JDOMException {
466466
this.saxHandler = shandler;
467467

468468
// Allocate (if not provided) and configure the parent parser.
469-
if (this.getParent() != null) {
469+
if (this.getParent() == null) {
470470
setParent(xreader);
471471
}
472472

0 commit comments

Comments
 (0)