function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jdlforcejdlforce 

Google Data APIs Schema Demo - Problem

Hi there - I hope some of you can help me out with this.

 

I am trying to use the Google Data APIs Schema Demo (http://wiki.developerforce.com/index.php/Google_Data_APIs_Schema_Demo) but I am running into a Attempt to de-reference a null object.

The line in red is the offending one:

 

cell = cellMap.get('R'+currRow+'C1');

System.debug('cell: '+ cell);

//logMessages.add('['+name+'] Got cell for row#'+currRow+', isNull='+(cell ==null)); 

cell.content = fldDescRes.getLabel();

System.debug('theField: ' + cell.content); 

 

cell is null after the 2nd row but I can see that the worksheet has 19 rows. 

 

Have you seen this problem before? Thanks, JDL 

Best Answer chosen by Admin (Salesforce Developers) 
jdlforcejdlforce

There was a limit set by... someone... in the XMLDom to process no more than 10 elements. Once I removed the limit everything was fine except the performance.

Hopefully with the new XML Dom to be released with Spring 10 the performance will improve significantly.