On 11/9/16, 9:22 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" <carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com> wrote:
>Hi Alex, > >I'm trying to do this simple String operation: > >if(value.indexOf("url") >= 0) > obj[pieces[0]] = pieces[1]; > >and browser is reporting this error: > >"TypeError: null is not an object (evaluating 'value.indexOf')" > >maybe is something simple I can't see, but I can't see the problem here... > >Hope you could give some clue Is this inside parseStyles? What is the input string? Maybe post all of parseStyles so we can see it in context. -Alex