# Scattered Null Guards

> A defect in which every call site repeats a null check before the same operation.

Record: `lexicon:scattered-null-guards`
Kind: anti-pattern
Layer: [Design Patterns Core](https://banes-lab.com/records/layer/design-patterns-core.md)
Canonical: https://banes-lab.com/ontology/lexicon#lexicon-scattered-null-guards

Listed in [Lexicon terms](https://banes-lab.com/api/records/lexicon.md), after [Make Order Explicit](https://banes-lab.com/records/lexicon/make-order-explicit.md) and before [Complex Factory Hierarchies](https://banes-lab.com/records/lexicon/complex-factory-hierarchies.md).

## Category

- [Behavioral Patterns](https://banes-lab.com/records/lexicon-category/behavioral-patterns.md)

## Violates

- [Null Object Pattern](https://banes-lab.com/records/architecture/null-object-pattern.md)

## Linked from

- [Behavioral Patterns](https://banes-lab.com/ontology/principles/architecture-category-behavioral-patterns.md)
