Avoid possible NullPointerException.