json.aaData = null in fnDataTablesPipeline

json.aaData = null in fnDataTablesPipeline

AzzuAzzu Posts: 8Questions: 0Answers: 0
edited March 2013 in Bug reports
Hi everyone,
I need some help to solve an issue.

The problem is the json.aaData used at the end of fnDataTablesPipeline (see http://www.datatables.net/examples/server_side/pipeline.html).
Sometimes I have a javascript error saying this variable is empty or isn't a object where the function json.aaData.splice() is called.

My question is: where is declared the json in the "else" ? Is it normal if it's implicite ? I'm pretty sure it's the origin of my problem but i need a confirmation.


  • allanallan Posts: 56,819Questions: 1Answers: 9,029 Site admin
    aaData === null is not valid for DataTables regardless of the pipelining. If you have an empty result set, it should be an empty array.

This discussion has been closed.