if (dataprovider[i].someValue == null){
...
}
--- In [email protected], "napearson99" <[EMAIL PROTECTED]> wrote:
>
> I often get this error and I "usually" know why. Does anyone know how
> to check for a null reference?
>
> i.e.
>
> if (dataprovider[i].someValue is null){
> dothis();
> }
>
> Where dataprovider[i] does not have a someValue property. I bet this
> is pretty simple and I just don't know the syntax. Thanks in advance!
>- [flexcoders] Cannot access a property or method of a null o... napearson99
- [flexcoders] Re: Cannot access a property or method of... Paul DeCoursey
- [flexcoders] Re: Cannot access a property or metho... napearson99
- [flexcoders] Re: Cannot access a property or m... Nate Pearson
- RE: [flexcoders] Re: Cannot access a prope... Gordon Smith
- RE: [flexcoders] Re: Cannot access a prope... Steve Cox
- [flexcoders] Re: Cannot access a prop... Nate Pearson

