The Non-Polymorphic Null Object Anti-Pattern

I’ve noticed a common (anti) pattern that a couple of unrelated teams I’ve worked with have settled into, which I will explain in detail. A common pattern to prevent null reference checks littering one’s code is the Null Object Pattern. The Null Object Pattern is an abstraction created to stand in for some concrete object…