I'm trying to pass a two dimensional array from my lightning controller to apex controller but inner array is coming back as null.
Js controller:
updateIds = [noContactIdLead, noContactIdContact];
var action = component.get('c.updateRecords');
action.setParams({updateMap: updateIds });
action.setCallback(this, function(response){
console.log('finished!');
});
$A.enqueueAction(action);
Apex Controller:
public Static Void updateRecords(List<List<String>> updateMap){
System.debug('!!!!!!!!!!!!!!!!!!!!!!!');
System.debug(updateMap);
System.debug('!!!!!!!!!!!!!!!!!!!!!!!');
System.debug(updateMap[0]);
System.debug(updateMap[1]);
System.debug('!!!!!!!!!!!!!!!!!!!!!!!!');
I'm getting Status: An Apex exception was thrown.
The debug of updateMap is showing ([00Qm0000008xbPGPSD, 00Qm0000008xhEvCVR], []) which shows the Ids have been passed, but when I try and access the inner list with updateMap[0] I get System.UnexpectedException: null. How can I access the inner array?