---
title: "Discussion on \"Guide to NullPointerException in Java And How to Avoid it\" | Hashnode"
description: "Discussion on \"Guide to NullPointerException in Java And How to Avoid it\". NullPointerException (or NPE for short) is one of those dreaded exceptions that every Java developer has to face in their career. We'll discuss the exception, why and when it exists and how to avoid it in detail later, but first, let's understand the..."
url: "https://hashnode.com/posts/guide-to-nullpointerexception-in-java-and-how-to-avoid-it/640ca4f5420937e4885ac871"
---

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

Discussion

# [Guide to NullPointerException in Java And How to Avoid it](https://firas-hassan.com/guide-to-nullpointerexception-in-java-and-how-to-avoid-it?utm_source=hashnode&utm_medium=feed)

NullPointerException (or NPE for short) is one of those dreaded exceptions that every Java developer has to face in their career. We'll discuss the exception, why and when it exists and how to avoid it in detail later, but first, let's understand the...

Mar 11, 2023 · 10 min read · firas-hassan.com  
Updated Feb 2, 2024  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#null](https://hashnode.com/tag/null)
-   [#nullpointerexception](https://hashnode.com/tag/nullpointerexception)
-   [#apache-commons](https://hashnode.com/tag/apache-commons)

## Written by

[Firas Hassan](https://hashnode.com/@Firas31)

@Firas31

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

backend developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
