Handles a nullpointer in the CacheController