Nulls & Null Objects
Excessive null checking can be alleviated by the use of the Null Object Pattern. Rather than passing a null value a object that represents the null state can be provided with sensible values.
Example
|
|
Excessive null checking can be alleviated by the use of the Null Object Pattern. Rather than passing a null value a object that represents the null state can be provided with sensible values.
|
|