That’s odd? That piece of code in the cfspreadsheet extension is simply just getting the file extension and doing so like this:
<cfset imgType = UCase(ListLast(arguments.filePath, ".")) />
“filepath” is the first argument to the addImage function. The error appears to be thrown from the ListLast function?