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:
parent
6c53615d11
commit
d6ce721a25
|
@ -849,7 +849,7 @@ function tNode_get_byKey_as1dFloat(self,k,defaultVal,requiredSize) result(nodeAs
|
||||||
|
|
||||||
if (self%contains(k)) then
|
if (self%contains(k)) then
|
||||||
node => self%get(k)
|
node => self%get(k)
|
||||||
select type(self)
|
select type(node)
|
||||||
class is(tList)
|
class is(tList)
|
||||||
list => node%asList()
|
list => node%asList()
|
||||||
nodeAs1dFloat = list%as1dFloat()
|
nodeAs1dFloat = list%as1dFloat()
|
||||||
|
|
Loading…
Reference in New Issue