Skip to content

NullReferenceException in ShouldClean method #42

@Ericvf

Description

@Ericvf

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions