You need to sign in to do that
Don't have an account?

Internal System Error in populating map
I have a small piece of code:
Map<List<String>,String> mapLstStr = new Map<List<String>,String>();
List<String> lst1 = new List<String>();
List<String> lst2 = new List<String>();
lst1.add('A');
lst1.add('B');
lst2.add('A');
lst2.add('C');
mapLstStr.put(lst1,'ABCD');
mapLstStr.put(lst2,'ABCDE');
System.debug('****'+mapLstStr);
When i execute it in developer console,its showing 'Internal System Error: 1311241958-36767 (-1213750749)'.Can anybody please help me to debug this piece.
'
Hi it cannot print total list
Try this code
Map<List<String>,String> mapLstStr = new Map<List<String>,String>();
List<String> lst1 = new List<String>();
List<String> lst2 = new List<String>();
lst1.add('A');
lst1.add('B');
lst2.add('A');
lst2.add('C');
mapLstStr.put(lst1,'ABCD');
mapLstStr.put(lst2,'ABCDE');
System.debug('****'+mapLstStr.get(lst1));
Prem
System.debug('****'+mapLstStr); got the error, like,
An internal error occurred during: "Execute-Anonymous". java.lang.NullPointerException
All the other methods of Map are fine.
Try the other way around
Regards
Sorry, it to be meant that way only.Say suppose we want to create a map of 2 master objects and the related junction object.So in the list it will contain the 2 master objet's id (as a key) and the string as the junction objects's id (as a value).
What about...