Null Object Pattern
Calling code can invoke methods without checking for null when using a null object. The null object pattern reduces null-reference exceptions without spreading conditional checks throughout the codebase. Null objects allow calls to complet…
1 sources - 4 claims
Calling code can invoke methods without checking for null when using a null object. The null object pattern reduces null-reference exceptions without spreading conditional checks throughout the codebase. Null objects allow calls to complete harmlessly when no real implementation is present. The null object pattern replaces null references with objects that implement the expected interface.