Skip to content

Latest commit

 

History

History
 
 

NullObject

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Null Object Pattern

Reflect a do nothing relationship.

This pattern is commonly used to provide behavior in case data is not available. In most object-oriented languages, such as Java or C#, references may be null. These references need to be checked to ensure they are not null before invoking any methods, because methods typically cannot be invoked on null references.

For more information, Wikipedia provides a great overview of the pattern: Wikipedia Article