Quantcast
Channel: userinfo.getuserid() returning null in test class - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 3

Answer by Skumar for userinfo.getuserid() returning null in test class

$
0
0

Issue is resolved

The null pointer exception was due to Account record which was not getting inserted due to invalid Account ID field in createUser method. Due to that, as there is no partner account, the user record is not getting inserted in the test class. Found this issue by creating debug logs and going through the lines step by step.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>