Re ##1327 Check whether the log is null.