papelX.moderador = abc.Id;
papelX.participantes.Add(abc);
I'm finding a NullReferenceException
in this code above.
I am creating a papelX
object and will use some properties of the object abc
.
Visual Studio is saying that on the bottom line the abc
object is null.
I'm not understanding, because in this first line, as you can see, the Id
property of abc
was properly copied to papelX.moderador
. There was no problem.
Even with the mouse over abc
I realize that several properties of it are properly filled. It is not null. Why is this happening?