Avoid NullPointerException.