Avoid a specific NullPointerException