Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Value not populating for one of the attribute

 
Hardik Modi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to populate the values from couple of attributes and storing all this information in file via below code.



So while compiling this code, I am getting all the values for the attributes but not for the Email.

out.write("IdentityName,UserName,First_Name,Last_Name,WorkforceID,Organization,Email");

its constantly writing null value in file.

I am not able to figure out where i am making the mistake.any takers and help me out.
 
Steve Luke
Bartender
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

That line of code returns null. There is no "mail" attribute in user - either you are using the wrong name ("mail") to look the value up or you are not storing the value to begin with.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic