C
C#7mo ago
Frite

Help me find what is null

I can't find i very stuck
No description
12 Replies
Frite
FriteOP7mo ago
(null argument is nullable)
Pobiega
Pobiega7mo ago
entPosi? s? spriteEffect? Space.layer?
Frite
FriteOP7mo ago
thoses are structs that can't be null
Pobiega
Pobiega7mo ago
all of them? can you attach a debugger and set it to break on exception?
Frite
FriteOP7mo ago
how to ? i got null reference exeption i guess the error is somewhere else ... but i can't find
Pobiega
Pobiega7mo ago
No description
Pobiega
Pobiega7mo ago
it should then break when the exception is thrown, and you can inspect everything at that moment
Frite
FriteOP7mo ago
ok i will put here what went wrong when i found it
Jimmacle
Jimmacle7mo ago
it would be easier to track down the issue if you didn't have so much embedded in one statement break it up into a few intermediate variables and it will help narrow down the issue
Frite
FriteOP7mo ago
i found
Frite
FriteOP7mo ago
this was returning null
No description
Pobiega
Pobiega7mo ago
That'll do it.

Did you find this page helpful?