Basic array existing question

Hi:


if(event.result != null){
    if(event.result.data != null)
        func1(event.result.data);
    }
}

I was wondering on the second line, the if statement access the data element. What if data element does not exist at all, will that cause runtime error? Do I have to check if data element exist before accessing it?

This code is c, c++ language won’t even compile I think.