Fix NPE.
IMHO there is no need to log here.