refactoring: workaround for null analysis

* Eclipse will not compile the following if statements otherwise