C
C#15mo ago
Mitch

✅ How can an error occur inside an if statement when the condition doesn't == true?

18 Replies
Mitch
Mitch15mo ago
I am baffled how i'm getting an exception inside of this if statement. I'm null checking the value first. Is it something to do with recursion that I'm not understanding?
sibber
sibber15mo ago
put a breakpoint on the if statement and try to repro
Mitch
Mitch15mo ago
I'll have to google that. I don't know what a breakdown is
sibber
sibber15mo ago
breakpoint
Mitch
Mitch15mo ago
oh. i do have one checkout the screenshot. it says its null, but the code has an error inside.
sibber
sibber15mo ago
oh yeah i just saw it
Mitch
Mitch15mo ago
i figured it was somehting I don't understand
sibber
sibber15mo ago
well how did it throw on that line if the breakpoint wasnt hit
Mitch
Mitch15mo ago
no kidding. i put a breakpoint if webField == null
sibber
sibber15mo ago
i asumme the debugger bugged out
Mitch
Mitch15mo ago
i restarted VS. still just trying random stuff for now
sibber
sibber15mo ago
or some pdb is old
Mitch
Mitch15mo ago
attempting clean
sibber
sibber15mo ago
try deleting obj and bin manually
Mitch
Mitch15mo ago
oh dern i always forget that running again I should know its always the simple things when its this odd thanks
sibber
sibber15mo ago
did it work?
Mitch
Mitch15mo ago
yep
sibber
sibber15mo ago
nice
Want results from more Discord servers?
Add your server
More Posts