# NullPointerException error

**URL:** <https://discourse.processing.org/t/nullpointerexception-error/40167>\
**Category:** Coding Questions\
**Created:** [December 15, 2022, 3:18am UTC](https://discourse.processing.org/t/nullpointerexception-error/40167 "2022-12-15T03:18:05Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [December 17, 2022, 6:46pm UTC](https://discourse.processing.org/t/nullpointerexception-error/40167/8 "2022-12-17T18:46:57Z")

</div>

Hello @onosecond ,

It also helps to share where you are getting the errors:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/5/6/5617e80c11f98534d1e4c4c43246bea80bee4306.png)

This is usually highlighted.

In this case there are two messages in the console:

- The image was missing.
- It generated a _NullPointerException_ when trying to display it.

You must then interpret the messages and try to resolve what is causing the issue.

References:  
_[Why do I get a NullPointerException? - Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/8071/why-do-i-get-a-nullpointerexception.html)_

_[Guidelines—Asking Questions](https://discourse.processing.org/t/guidelines-asking-questions/2147)_ states:

> [@Guidelines—Asking Questions](https://discourse.processing.org/t/guidelines-asking-questions/2147/1):
>
> Note that if you post extra code, you might be asked to narrow your problem down to a [Minimum, Complete, Verifiable Example](https://stackoverflow.com/help/mcve). This just means that you should try to isolate your code into a smaller example.

`:)`

---

_[View the full topic](https://discourse.processing.org/t/nullpointerexception-error/40167)._
