Here is a patch that checks the dataSource for null, as per the bug reported in this thread:http://community.codesmithtools.com/forums/t/8249.aspx
follow up .. the patch was applied and made into rev. 710