---
title: "Discussion on \"Null Object Pattern\" | Hashnode"
description: "Discussion on \"Null Object Pattern\". Are you returning null from your methods? Are you branching your code with \"if not null\"? Do you often see null reference exceptions in your production logs? Read on to understand how you can design to completely avoid null in your codebase.  \nSir To..."
url: "https://hashnode.com/posts/null-object-pattern/65803073cbc0f3160de215e7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Null Object Pattern](https://blog.thedevperspective.com/null-object-pattern?utm_source=hashnode&utm_medium=feed)

Are you returning null from your methods? Are you branching your code with "if not null"? Do you often see null reference exceptions in your production logs? Read on to understand how you can design to completely avoid null in your codebase. Sir To...

Dec 18, 2023 · 2 min read · blog.thedevperspective.com  
Read the article

-   [#null-object-design-pattern](https://hashnode.com/tag/null-object-design-pattern)
-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Gireesh Kapila](https://hashnode.com/@GireeshKapila)

@GireeshKapila

  
[View profile](https://hashnode.com/@GireeshKapila)

The Dev Perspective!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
