need to check type of leaf

otherwise, using a [list] where a scalar is expected results in a crash,
not in a meaningful error message
This commit is contained in:
Martin Diehl 2021-07-24 12:10:59 +02:00
parent 6c53615d11
commit d6ce721a25
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ function tNode_get_byKey_as1dFloat(self,k,defaultVal,requiredSize) result(nodeAs
if (self%contains(k)) then
node => self%get(k)
select type(self)
select type(node)
class is(tList)
list => node%asList()
nodeAs1dFloat = list%as1dFloat()