C
C#3mo ago
Frite

Help me find what is null

I can't find i very stuck
No description
12 Replies
Frite
FriteOP3mo ago
(null argument is nullable)
Pobiega
Pobiega3mo ago
entPosi? s? spriteEffect? Space.layer?
Frite
FriteOP3mo ago
thoses are structs that can't be null
Pobiega
Pobiega3mo ago
all of them? can you attach a debugger and set it to break on exception?
Frite
FriteOP3mo ago
how to ? i got null reference exeption i guess the error is somewhere else ... but i can't find
Pobiega
Pobiega3mo ago
No description
Pobiega
Pobiega3mo ago
it should then break when the exception is thrown, and you can inspect everything at that moment
Frite
FriteOP3mo ago
ok i will put here what went wrong when i found it
Jimmacle
Jimmacle3mo 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
FriteOP3mo ago
i found
Frite
FriteOP3mo ago
this was returning null
No description
Pobiega
Pobiega3mo ago
That'll do it.
Want results from more Discord servers?
Add your server