+ Start a Discussion
Amey K 10Amey K 10 

UserInfo.getUserName() returning null in Production

I have a apex class which added current user Name to a list. And this class is a part of managed package.
The code workes perfectly fine and the list is populated with the current users. However the same code returns a null list in Production.
Is there any particular set up I need to do in production as this is a managed package ?