You need to sign in to do that
Don't have an account?
WilliamShrewsbury
Map key null not found in map
After some research this appears to be a bug in Spring '12 release. Is anyone having issues with this and if so is there a work around that is applicable to this? The full error is:
Map key null not found in map
Error is in expression '{!relatedContactMapId[timeCard.Contact__c].Id}' in component <apex:repeat> in page webex_training
So if I comment out the reference to in the VisualForce page I can get around the error but I am no longer pulling the needed information. Any ideas would be appreciated.
I wouldn't recommend doing it the way you are doing so currently. By doing it this way, you are sort of defeating the purpose of the MVC architecture by putting the business logic into your view. I'm not completely sure what is happening on the page, but it might be easier to use a wrapper class than to use a Map inside of your view.
All Answers
I wouldn't recommend doing it the way you are doing so currently. By doing it this way, you are sort of defeating the purpose of the MVC architecture by putting the business logic into your view. I'm not completely sure what is happening on the page, but it might be easier to use a wrapper class than to use a Map inside of your view.
Something like this.
can we check the map contains key on vf page ?
on the VF page, I think you might be able to do
Or at least some flavor of this. I don't know the particulars off the top of my head.