Fixed null pointer for Logs