Click here to Skip to main content
15,796,456 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello, first of all i tried Google. But it seems I couldn't find their point. So i'm using the LinkedIn API. I have this function.

search_records: function(fn, ln) {
        .fields("id", "firstName", "lastName", "headline", "industry")
        .result(function(e) {
           var results = e.people.values;
           var people = [];
           for (var i=0; i < results.length; i++) {

           . . . . . . . 

           /* I have codes that need those values */


           etc . . .

My problem is the subject error. How do i catch it, because sometimes that data being passed to me have less info than what i require, so i think that is the cost of the length undefined. So how to solve this?.
Sergey Alexandrovich Kryukov 29-Oct-13 17:16pm    
Why do you think you need to "catch" anything? You just need to stop using non-existing properties. In what like do you have an exception? What do you want to achieve?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900