The FileCache.Init( ... ) method calls the ShouldClean method before initializing the CacheManager class member.
To mitigate the exception, consider moving the initialization of the CacheManager to be called before ShouldClean is called. Alternatively you may also use the null-conditional operator in the ShouldClean method to prevent the NullReferenceException from being thrown.