Handling a null cache