Devil in a tiny detail

Often we try to avoid unexpected evil NullPointerExceptions, especially once we work with POJOs. However sometimes instead of fixing the problem, one¬†unintentionally introduces it. What could be less harmful than checking for NULL and only if the object is good, getting its property? Best, if you could do it inline! MyType object = new MyType(); … Continue reading Devil in a tiny detail

Advertisements