The Javadocs for BeanUtil.getPropertyValue() say that if any element
of the given pathname is null, the function will return null.  What
I'm seeing, however, is if at some step in the path there's a map
object in the object graph, and the next step is a string key for
which there's no entry in the map, that instead of a null return value
I get an EvaluationException:

net.sourceforge.stripes.util.bean.EvaluationException: Not enough type
information available to evaluate expression. Expression:
'access.SecurityImage'. Type information ran out at node
'SecurityImage', which represents a Map entry. Please ensure that
either the getter for the Map contains appropriate generic type
information or that it contains a value with the key type
java.lang.String and value SecurityImage

In this case, the map corresponding to the name "access" is a HashMap
created during the loading of a YAML file.  There is no entry in the
map for "SecurityImage", and by my reading of the Javadoc I should be
getting a null back from getPropertyValue().  Am I not understanding
something here?

-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.

------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to