How to avoid null statements in Java | Hacker News Reader