HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by tasubotadas | Hacker News Reader
Parent
Full thread
tasubotadas
·
Ahh... The good 'ol technique for avoiding NPEs in Java.
View on HN
neatcoder
·
For those who are wondering what this refers to, it is writing code like this:
"foo".equals(myVar)
instead of writing:
myVar.equals("foo")
which could can cause NullPointerException if myVar is null.
delinka
·
you've missed a closing " which makes this read differently than intended
neatcoder
·
Thanks. Fixed now.
Reply on news.ycombinator.com