C
C#2y ago
Mitch

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

18 Replies
Mitch
MitchOP2y 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
sibber2y ago
put a breakpoint on the if statement and try to repro
Mitch
MitchOP2y ago
I'll have to google that. I don't know what a breakdown is
sibber
sibber2y ago
breakpoint
Mitch
MitchOP2y ago
oh. i do have one checkout the screenshot. it says its null, but the code has an error inside.
sibber
sibber2y ago
oh yeah i just saw it
Mitch
MitchOP2y ago
i figured it was somehting I don't understand
sibber
sibber2y ago
well how did it throw on that line if the breakpoint wasnt hit
Mitch
MitchOP2y ago
no kidding. i put a breakpoint if webField == null
sibber
sibber2y ago
i asumme the debugger bugged out
Mitch
MitchOP2y ago
i restarted VS. still just trying random stuff for now
sibber
sibber2y ago
or some pdb is old
Mitch
MitchOP2y ago
attempting clean
sibber
sibber2y ago
try deleting obj and bin manually
Mitch
MitchOP2y ago
oh dern i always forget that running again I should know its always the simple things when its this odd thanks
sibber
sibber2y ago
did it work?
Mitch
MitchOP2y ago
yep
sibber
sibber2y ago
nice
Want results from more Discord servers?
Add your server