Skip to content

Commit

Permalink
fix #197
Browse files Browse the repository at this point in the history
eblondel committed Sep 26, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6d43402 commit 8b8263d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/GMLElement.R
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ GMLElement <- R6Class("GMLElement",
childName <- names(children)[i]
childElem <- GMLElement$new(element = childName)
childElem$decode(xml = childXML)
if(is(self[[childName]], "list")){
if(is(self[[childName]], "list") | !is.null(self[[childName]])){
self[[childName]] <- c(self[[childName]], childElem)
}else{
self[[childName]] <- childElem

0 comments on commit 8b8263d

Please sign in to comment.