Skip to content

Commit

Permalink
fix in case of NULL attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed May 23, 2018
1 parent 3d69de1 commit ea85534
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/WFSFeatureType.R
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ WFSFeatureType <- R6Class("WFSFeatureType",
attrType <- element$getType()
if(!is.null(attrType) && attrType != "geometry"){
attrName = element$getName()
ftFeatures[[attrName]] <- as(ftFeatures[[attrName]],attrType)
if(!is.null(ftFeatures[[attrName]])){
ftFeatures[[attrName]] <- as(ftFeatures[[attrName]],attrType)
}
}
}
self$features <- ftFeatures;
Expand Down

0 comments on commit ea85534

Please sign in to comment.