
5 risposte

Sorry but I can't post the code here as it has some client data. I believe my test class is just fine like for example, I can get this in the Map
accMap.get(c.AccountId).Id
Meaning the key is present in the Map.
But when I fetch the lookup field, which is not a required field so it can be left blank/null, the error occurs since the value returned is null.Thanks.