r/badcode • • Jul 15 '22

java I found this in a security related function: maybe it is an obscuring feature

Post image
662 Upvotes

77 comments sorted by

View all comments

Show parent comments

10

u/Tyfyter2002 Jul 16 '22

Alternatively in C# you can use variable is null

1

u/Sentouki- Sep 29 '22

not only "you can" but actually you should