indexOf is null error.

indexOf is null error.

Hello,
I am new to jquery. I am getting error in jquery.min.js file
Some line is showing error saying indexOf is null. I have not referenced this file anywhere in my code. What I am actually doing is this.

var filteredRows = jQuery.grep(eval(records).rows, function (elem, index) {
                    var IDValue = elem.toString().split(",");
                    if (IDValue != null) {
                        return jQuery.inArray(parseInt(IDValue[0]), args) > -1;
                    }
                });

Even, if i remove parseInt or I check IDvalue is null here it is still giving me error.
Please, tell me how to do this.
Thanks.