Hello!
Please I need your help. I have troubles for simple operations with Map.
I have a method taking as parameters a map: Map<QName, Serializable> props
And in this method I am doing this:
//I check if props is null and it is not and I print what there is in my
props
if(props==null)
logger.info("createPersonNode props null!");
else
logger.info("createPersonNode props not null!" + props.toString());
//I get the property username from props but in my log I have a null pointer
exception
String userName =
props.get("{http://www.example.com/model/ef/1.0}pers_userName").toString();
logger.info("username= " + userName);
Here are the results in my log. I do not understand why I have null pointer
exception while looking for username in my map:
createPersonNode props not
null!{{http://www.example.com/model/ef/[EMAIL PROTECTED],
{http://www.example.com/model/ef/1.0}pers_secondLanguage=ab,
{http://www.example.com/model/ef/1.0}pers_birthday=Mon Jun 08 00:00:00 CET
1953,[...] {http://www.example.com/model/ef/1.0}pers_userName=pomerol [...]}
Thanks for your help.
Sophie